diff --git a/doc/release-checklist.md b/doc/release-checklist.md index a818b0baf..d01a1a94d 100644 --- a/doc/release-checklist.md +++ b/doc/release-checklist.md @@ -32,7 +32,7 @@ ### Debian -* In gbp repository, run `tools/debrelease.sh $VERSION`: +* In gbp repository, run `tools/debrelease.sh $VERSION path-to-notcurses-checkout`: * Updates Debian changelog with `dch -v $VERSION+dfsg.1-1` * Finalizes Debian changelog with `dch -r` * Repacks DFSG-safe tarball with `uscan`: diff --git a/tools/debrelease.sh b/tools/debrelease.sh index a38b2b9a0..f88784095 100755 --- a/tools/debrelease.sh +++ b/tools/debrelease.sh @@ -5,11 +5,12 @@ set -e # export DISTRIBUTION to use something other than unstable (or whatever was # last used in debian/changelog). see dch(1). can use a DEBVERSION exported # in the process's environment. -usage() { echo "usage: `basename $0` version" ; } +usage() { echo "usage: `basename $0` version notcursessrcdir" ; } -[ $# -eq 1 ] || { usage >&2 ; exit 1 ; } +[ $# -eq 2 ] || { usage >&2 ; exit 1 ; } VERSION="$1" +SRCDIR="$2" if [ -z "$DEBVERSION" ] ; then DEBVERSION=1 @@ -23,9 +24,12 @@ 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? -github-asset dankamongmen/notcurses upload v$VERSION ../notcurses_$VERSION+dfsg.1.orig.tar.xz ../notcurses_$VERSION+dfsg.1.orig.tar.xz.asc +XBALL=notcurses_$VERSION+dfsg.1.orig.tar.xz +gpg --sign --armor --detach-sign ../$XBALL +ASC=$(readlink -f ../$XBALL.asc) +cd "$SRCDIR" +gh release upload v$VERSION $ASC $(readlink -f $XBALL) +cd - git commit -m "v$VERSION" -a echo