chore(linux): Improve version number for debian package

This change switches the package version number for packages that
are intended for the Debian package repo to match the Debian policies.

It also removes the comment from the watch file.
This commit is contained in:
Eberhard Beilharz 2021-01-14 17:38:45 +01:00
parent c826857f09
commit f3b8ccf07f
No known key found for this signature in database
GPG key ID: 64A39A9E98B53105
3 changed files with 4 additions and 3 deletions

View file

@ -29,6 +29,7 @@ for proj in ${projects}; do
downloadSource debianpackage
cd ${proj}-${version}
dch -v ${version}-1 "Re-release to Debian"
debuild -d -S -sa -Zxz
cd ${BASEDIR}
done

View file

@ -39,8 +39,8 @@ function downloadSource() {
make clean
fi
# Update tier in Debian watch files (replacing any previously set tier)
sed "s/\$tier\|alpha\|beta\|stable/${TIER}/g" $BASEDIR/scripts/watch.in > debian/watch
# Update tier in Debian watch files (replacing any previously set tier) and remove comment
sed -e "s/\$tier\|alpha\|beta\|stable/${TIER}/g" -e "s/^# .*$//" $BASEDIR/scripts/watch.in > debian/watch
version=$(uscan --report --dehs|xmllint --xpath "//dehs/upstream-version/text()" -)
dirversion=$(uscan --report --dehs|xmllint --xpath "//dehs/upstream-url/text()" - | cut -d/ -f6)

View file

@ -1,3 +1,3 @@
version=4
# Tier set by launchpad.sh script
# Tier replaced by package-build.inc.sh script
https://downloads.keyman.com/linux/$tier/@ANY_VERSION@/@PACKAGE@@ANY_VERSION@@ARCHIVE_EXT@ debian uupdate