Skip to content

Commit

Permalink
Updated release script to include non-trunk versions
Browse files Browse the repository at this point in the history
  • Loading branch information
artyom-beilis committed Mar 20, 2012
1 parent 5a64896 commit c6d5dbb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tools/release.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
#!/bin/bash

if [ "$1" == "" ] ; then
echo "Usage (trunk|branches/name)"
exit 1;
fi

SVNROOT=https://cppcms.svn.sourceforge.net/svnroot/cppcms/framework

svn export $SVNROOT/trunk current-release
svn export $SVNROOT/$1 current-release
VERSION=`grep CPPCMS_PACKAGE_VERSION current-release/CMakeLists.txt | sed 's/.*"\(.*\)".*/\1/'`

if ! svn copy $SVNROOT/trunk $SVNROOT/tags/v$VERSION -m "Tagged release $VERSION"
if ! svn copy $SVNROOT/$1 $SVNROOT/tags/v$VERSION -m "Tagged release $VERSION"
then
echo failed to make a tag
fi
Expand Down

0 comments on commit c6d5dbb

Please sign in to comment.