-
-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pre-git commit, check additional changelog in old SVN repo.
- Loading branch information
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |