debrelease: support other distributions

pull/1485/head
nick black 3 years ago
parent 57114c8005
commit 2dcca32cd8
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -2,6 +2,8 @@
set -e
# export DISTRIBUTION to use something other than unstable (or whatever was
# last used in debian/changelog). see dch(1).
usage() { echo "usage: `basename $0` version" ; }
[ $# -eq 1 ] || { usage >&2 ; exit 1 ; }
@ -10,7 +12,11 @@ VERSION="$1"
rm -fv debian/files
dch -v $VERSION+dfsg.1-1
dch -r
if [ -n "$DISTRIBUTION" ] ; then
dch -r --distribution "$DISTRIBUTION"
else
dch -r
fi
uscan --repack --compression xz --force
gpg --sign --armor --detach-sign ../notcurses_$VERSION+dfsg.1.orig.tar.xz
# FIXME this seems to upload to $VERSION.dfsg as opposed to $VERSION+dfsg?

Loading…
Cancel
Save