Skip to content

Commit dd508b3

Browse files
Daan HooglandDaanHoogland
authored andcommitted
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
1 parent 2b22022 commit dd508b3

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

tools/build/build_asf.sh

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ echo "found $currentversion"
9292
echo 'setting version numbers'
9393
mvn versions:set -DnewVersion=$version -P vmware -P developer -P systemvm -P simulator -P baremetal -P ucs -Dnoredist
9494
mv deps/XenServerJava/pom.xml.versionsBackup deps/XenServerJava/pom.xml
95+
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
96+
perl -pi -e "s/-SNAPSHOT//" tools/checkstyle/pom.xml
9597
perl -pi -e "s/-SNAPSHOT//" deps/XenServerJava/pom.xml
9698
perl -pi -e "s/-SNAPSHOT//" tools/apidoc/pom.xml
9799
case "$currentversion" in
@@ -100,6 +102,18 @@ case "$currentversion" in
100102
;;
101103
esac
102104

105+
# set debian changelog entry
106+
tmpfilenm=$$.tmp
107+
echo "cloudstack ($version) unstable; urgency=low" >>$tmpfilenm
108+
echo >>$tmpfilenm
109+
echo " * Update the version to $version" >>$tmpfilenm
110+
echo >>$tmpfilenm
111+
echo " -- the Apache CloudStack project <dev@cloudstack.apache.org> `date -j '+%a, %d %b %Y %T %z'`" >>$tmpfilenm
112+
echo >>$tmpfilenm
113+
114+
cat debian/changelog >>$tmpfilenm
115+
mv $tmpfilenm debian/changelog
116+
103117
git clean -f
104118

105119
#create a RC branch
@@ -115,7 +129,7 @@ export commitsh=`git show HEAD | head -n 1 | cut -d ' ' -f 2`
115129
echo "committed as $commitsh"
116130

117131
echo 'archiving'
118-
git archive --format=tar --prefix=apache-cloudstack-$version-src/ $branch > $outputdir/apache-cloudstack-$version-src.tar
132+
git archive --format=tar --prefix=apache-cloudstack-$version-src/ $branch-$RELEASE_BRANCH > $outputdir/apache-cloudstack-$version-src.tar
119133
bzip2 $outputdir/apache-cloudstack-$version-src.tar
120134

121135
cd $outputdir

0 commit comments

Comments
 (0)