dist/ubuntu: generate correct distribution codename on debian/changelog
Since we supported more than one version of Ubuntu, need to generate each codename on changelog.
This commit is contained in:
parent
ef15d95416
commit
d8d3023334
Notes:
Pekka Enberg
2016-05-04 13:20:20 +03:00
backport: 1.1
5
dist/ubuntu/build_deb.sh
vendored
5
dist/ubuntu/build_deb.sh
vendored
@ -9,6 +9,10 @@ if [ -e debian ] || [ -e build ] || [ -e target ] || [ -e m2 ] || [ -e dependenc
|
||||
rm -rf debian build target m2 dependency-reduced-pom.xml
|
||||
fi
|
||||
|
||||
DISTRIBUTION=`lsb_release -i|awk '{print $3}'`
|
||||
RELEASE=`lsb_release -r|awk '{print $2}'`
|
||||
CODENAME=`lsb_release -c|awk '{print $2}'`
|
||||
|
||||
VERSION=$(./SCYLLA-VERSION-GEN)
|
||||
SCYLLA_VERSION=$(cat build/SCYLLA-VERSION-FILE | sed 's/\.rc/~rc/')
|
||||
SCYLLA_RELEASE=$(cat build/SCYLLA-RELEASE-FILE)
|
||||
@ -22,6 +26,7 @@ cp -a dist/ubuntu/debian debian
|
||||
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
|
||||
sed -i -e "s/@@CODENAME@@/$CODENAME/g" debian/changelog
|
||||
|
||||
sudo apt-get -y install debhelper maven openjdk-7-jdk devscripts
|
||||
debuild -r fakeroot -us -uc
|
||||
|
2
dist/ubuntu/changelog.in
vendored
2
dist/ubuntu/changelog.in
vendored
@ -1,4 +1,4 @@
|
||||
scylla-jmx (@@VERSION@@-@@RELEASE@@-ubuntu1) trusty; urgency=medium
|
||||
scylla-jmx (@@VERSION@@-@@RELEASE@@-ubuntu1) @@CODENAME@@; urgency=medium
|
||||
|
||||
* Initial release.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user