Adding a hack to the RC spin script that removes all references to -SNAPSHOT from the debian/rules file. Also added an automatic revert of the verion bump to sure that I don't forget to do that.

Signed-off-by: Chip Childers <chip.childers@gmail.com>
This commit is contained in:
Chip Childers 2013-04-23 19:48:30 +01:00
parent 51bda0a5cd
commit c551f854ab
1 changed files with 10 additions and 0 deletions

View File

@ -94,6 +94,13 @@ mvn versions:set -DnewVersion=$version -P vmware -P developer -P systemvm -P sim
mv deps/XenServerJava/pom.xml.versionsBackup deps/XenServerJava/pom.xml
perl -pi -e 's/$ENV{'currentversion'}/$ENV{'version'}/' deps/XenServerJava/pom.xml
perl -pi -e 's/$ENV{'currentversion'}/$ENV{'version'}/' tools/apidoc/pom.xml
case "$version" in
*-SNAPSHOT*)
perl -pi -e 's/-SNAPSHOT//' debian/rules
;;
esac
git clean -f
echo 'commit changes'
@ -158,4 +165,7 @@ if [ "$committosvn" == "yes" ]; then
svn commit -m "Committing release candidate artifacts for $version to dist/dev/cloudstack in preparation for release vote"
fi
echo 'revert version changes'
git revert --no-edit $commitsh
echo "completed. use commit-sh of $commitsh when starting the VOTE thread"