mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 09:09:03 -04:00
rewrite tools/debrelease.sh using gh #2830
This commit is contained in:
parent
e0461a8249
commit
7618f611f2
@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
### Debian
|
### 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`
|
* Updates Debian changelog with `dch -v $VERSION+dfsg.1-1`
|
||||||
* Finalizes Debian changelog with `dch -r`
|
* Finalizes Debian changelog with `dch -r`
|
||||||
* Repacks DFSG-safe tarball with `uscan`:
|
* Repacks DFSG-safe tarball with `uscan`:
|
||||||
|
@ -5,11 +5,12 @@ set -e
|
|||||||
# export DISTRIBUTION to use something other than unstable (or whatever was
|
# export DISTRIBUTION to use something other than unstable (or whatever was
|
||||||
# last used in debian/changelog). see dch(1). can use a DEBVERSION exported
|
# last used in debian/changelog). see dch(1). can use a DEBVERSION exported
|
||||||
# in the process's environment.
|
# 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"
|
VERSION="$1"
|
||||||
|
SRCDIR="$2"
|
||||||
|
|
||||||
if [ -z "$DEBVERSION" ] ; then
|
if [ -z "$DEBVERSION" ] ; then
|
||||||
DEBVERSION=1
|
DEBVERSION=1
|
||||||
@ -23,9 +24,12 @@ else
|
|||||||
dch -r
|
dch -r
|
||||||
fi
|
fi
|
||||||
uscan --repack --compression xz --force
|
uscan --repack --compression xz --force
|
||||||
gpg --sign --armor --detach-sign ../notcurses_$VERSION+dfsg.1.orig.tar.xz
|
XBALL=notcurses_$VERSION+dfsg.1.orig.tar.xz
|
||||||
# FIXME this seems to upload to $VERSION.dfsg as opposed to $VERSION+dfsg?
|
gpg --sign --armor --detach-sign ../$XBALL
|
||||||
github-asset dankamongmen/notcurses upload v$VERSION ../notcurses_$VERSION+dfsg.1.orig.tar.xz ../notcurses_$VERSION+dfsg.1.orig.tar.xz.asc
|
ASC=$(readlink -f ../$XBALL.asc)
|
||||||
|
cd "$SRCDIR"
|
||||||
|
gh release upload v$VERSION $ASC $(readlink -f $XBALL)
|
||||||
|
cd -
|
||||||
git commit -m "v$VERSION" -a
|
git commit -m "v$VERSION" -a
|
||||||
|
|
||||||
echo
|
echo
|
||||||
|
Loading…
x
Reference in New Issue
Block a user