Skip to content

Commit

Permalink
Pre-git commit, check additional changelog in old SVN repo.
Browse files Browse the repository at this point in the history
  • Loading branch information
bostjan committed Aug 4, 2010
1 parent f07024a commit b5c58e1
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions dev-scripts/make-release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#!/bin/bash



### Check working directory
if [ ! -d "dev-scripts" ]; then
echo "ERROR: You have to run this script in the root of repository"
exit 1
fi



### Check release tag
RELEASE_TAG="$1"
if [ "x$RELEASE_TAG" == "x" ]; then
echo "ERROR: No release tag given. Use $0 X.Y.Z"
exit 1
fi



### Check if release already exists
if [ -e "tags/release-$RELEASE_TAG" ]; then
echo "ERROR: Release tag already exists"
exit 2
fi



### Create copy of trunk
svn cp trunk tags/release-$RELEASE_TAG &&
svn ci -m "Commiting release $RELEASE_TAG to svn" &&



# Create temporary directory and copy release there
cp -pR tags/release-$RELEASE_TAG snoopy-$RELEASE_TAG &&
cd snoopy-$RELEASE_TAG &&
autoheader &&
autoconf &&
cd .. &&
tar -c -z -f snoopy-$RELEASE_TAG.tar.gz snoopy-$RELEASE_TAG &&
rm -rf snoopy-$RELEASE_TAG

0 comments on commit b5c58e1

Please sign in to comment.