dist: support ./SCYLLA-VERSION-GEN on ubuntu package

Signed-off-by: Takuya ASADA <syuu@scylladb.com>
This commit is contained in:
Takuya ASADA 2015-11-07 05:10:51 +09:00 committed by Avi Kivity
parent c7df07ac70
commit dd2192ef97
2 changed files with 11 additions and 1 deletions

View File

@ -7,4 +7,14 @@ fi
sudo apt-get -y install debhelper maven openjdk-7-jdk devscripts
VERSION=$(./SCYLLA-VERSION-GEN)
SCYLLA_VERSION=$(cat build/SCYLLA-VERSION-FILE)
SCYLLA_RELEASE=$(cat build/SCYLLA-RELEASE-FILE)
if [ "$SCYLLA_VERSION" = "development" ]; then
SCYLLA_VERSION=0development
fi
cp dist/ubuntu/changelog.in debian/changelog
sed -i -e "s/@@VERSION@@/$SCYLLA_VERSION/g" debian/changelog
sed -i -e "s/@@RELEASE@@/$SCYLLA_RELEASE/g" debian/changelog
debuild -r fakeroot --no-tgz-check -us -uc

View File

@ -1,4 +1,4 @@
scylla-jmx (0.10-ubuntu1) trusty; urgency=medium
scylla-jmx (@@VERSION@@-@@RELEASE@@-ubuntu1) trusty; urgency=medium
* Initial release.