2020-07-27 01:39:46 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
usage() { echo "usage: `basename $0` version" ; }
|
|
|
|
|
|
|
|
[ $# -eq 1 ] || { usage >&2 ; exit 1 ; }
|
|
|
|
|
|
|
|
VERSION="$1"
|
|
|
|
|
|
|
|
dch -v $VERSION+dfsg.1-1
|
|
|
|
dch -r
|
|
|
|
uscan --repack --compression xz --force
|
|
|
|
gpg --sign --armor --detach-sign ../notcurses_$VERSION+dfsg.1.orig.tar.xz
|
2020-07-27 03:50:28 +00:00
|
|
|
# FIXME this seems to upload to $VERSION.dfsg as opposed to $VERSION+dfsg?
|
2020-07-27 01:39:46 +00:00
|
|
|
github-asset dankamongmen/notcurses upload v$VERSION ../notcurses_$VERSION+dfsg.1.orig.tar.xz ../notcurses_$VERSION+dfsg.1.orig.tar.xz.asc
|
2020-07-27 02:07:15 +00:00
|
|
|
git commit -m "v$VERSION" -a
|
2020-11-22 05:24:48 +00:00
|
|
|
|
|
|
|
echo
|
|
|
|
echo "Go change the $VERSION.dfsg to $VERSION+dfsg before proceeding, dog"
|
|
|
|
echo
|
|
|
|
|
2020-07-27 01:39:46 +00:00
|
|
|
gbp import-orig ../notcurses_$VERSION+dfsg.1.orig.tar.xz
|
|
|
|
git push --tags
|
|
|
|
dpkg-buildpackage --build=source
|
2020-08-27 19:45:31 +00:00
|
|
|
cd ..
|
|
|
|
export TERM=xterm-256color && sudo pbuilder build *dsc
|
|
|
|
cd -
|
|
|
|
git push
|
2020-09-01 02:28:58 +00:00
|
|
|
rm debian/files
|