sign release branch instead of release tree

edit checkstyle pom on rc creation
xapi release version dep
update debian package changelog on version upgrade

sign release branch instead of release tree

(cherry picked from commit dd508b3b9f)
This commit is contained in:
Daan Hoogland 2014-06-30 17:53:17 +02:00 committed by Daan Hoogland
parent 8cca0b224d
commit ef2aa2c529
1 changed files with 15 additions and 1 deletions

View File

@ -92,6 +92,8 @@ echo "found $currentversion"
echo 'setting version numbers'
mvn versions:set -DnewVersion=$version -P vmware -P developer -P systemvm -P simulator -P baremetal -P ucs -Dnoredist
mv deps/XenServerJava/pom.xml.versionsBackup deps/XenServerJava/pom.xml
perl -pi -e "s/<cs.xapi.version>6.2.0-1-SNAPSHOT<\/cs.xapi.version>/<cs.xapi.version>6.2.0-1<\/cs.xapi.version>/" pom.xml
perl -pi -e "s/-SNAPSHOT//" tools/checkstyle/pom.xml
perl -pi -e "s/-SNAPSHOT//" deps/XenServerJava/pom.xml
perl -pi -e "s/-SNAPSHOT//" tools/apidoc/pom.xml
case "$currentversion" in
@ -100,6 +102,18 @@ case "$currentversion" in
;;
esac
# set debian changelog entry
tmpfilenm=$$.tmp
echo "cloudstack ($version) unstable; urgency=low" >>$tmpfilenm
echo >>$tmpfilenm
echo " * Update the version to $version" >>$tmpfilenm
echo >>$tmpfilenm
echo " -- the Apache CloudStack project <dev@cloudstack.apache.org> `date -j '+%a, %d %b %Y %T %z'`" >>$tmpfilenm
echo >>$tmpfilenm
cat debian/changelog >>$tmpfilenm
mv $tmpfilenm debian/changelog
git clean -f
#create a RC branch
@ -115,7 +129,7 @@ export commitsh=`git show HEAD | head -n 1 | cut -d ' ' -f 2`
echo "committed as $commitsh"
echo 'archiving'
git archive --format=tar --prefix=apache-cloudstack-$version-src/ $branch > $outputdir/apache-cloudstack-$version-src.tar
git archive --format=tar --prefix=apache-cloudstack-$version-src/ $branch-$RELEASE_BRANCH > $outputdir/apache-cloudstack-$version-src.tar
bzip2 $outputdir/apache-cloudstack-$version-src.tar
cd $outputdir