aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Łyszczek <michal.lyszczek@bofc.pl>2018-10-26 15:47:16 +0200
committerMichał Łyszczek <michal.lyszczek@bofc.pl>2018-10-26 15:47:19 +0200
commitdab7ce0fae71bd0434c05f12cc5b3c312c526eae (patch)
tree45613220d016e47000bef9f58ea0b1868b384dae
parent469a0fc93c7455ecb4a1a519e01ae4f7918a13a2 (diff)
downloadlibrb-dab7ce0fae71bd0434c05f12cc5b3c312c526eae.tar.gz
librb-dab7ce0fae71bd0434c05f12cc5b3c312c526eae.tar.bz2
librb-dab7ce0fae71bd0434c05f12cc5b3c312c526eae.zip
add: codename field in changelog for deb pkgs
no_buildbot
-rw-r--r--pkg/debian/changelog.template2
-rwxr-xr-xpkg/debian/create-pkg.sh3
2 files changed, 4 insertions, 1 deletions
diff --git a/pkg/debian/changelog.template b/pkg/debian/changelog.template
index 24fd27b..eae6846 100644
--- a/pkg/debian/changelog.template
+++ b/pkg/debian/changelog.template
@@ -1,4 +1,4 @@
-librb (${VERSION}) stable; urgency=low
+librb (${VERSION}) ${CODENAME}; urgency=low
* librb package
diff --git a/pkg/debian/create-pkg.sh b/pkg/debian/create-pkg.sh
index d5fddf0..55ed0e3 100755
--- a/pkg/debian/create-pkg.sh
+++ b/pkg/debian/create-pkg.sh
@@ -50,9 +50,12 @@ echo "abi version ${abi_version}"
# building package
#
+codename="$(lsb_release -c | awk '{print $2}')"
+
cp -r "pkg/debian9/" "debian"
sed -i "s/\${DATE}/$(date -R)/" "debian/changelog.template"
sed -i "s/\${VERSION}/${version}/" "debian/changelog.template"
+sed -i "s/\${CODENAME}/${codename}/" "debian/changelog.template"
sed -i "s/\${ABI_VERSION}/${abi_version}/" "debian/control.template"
mv "debian/changelog.template" "debian/changelog"