little release script

pull/524/head
nick black 4 years ago
parent bc239077c2
commit 4ce208931c
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -0,0 +1,27 @@
#!/bin/sh
set -e
usage() { echo "usage: `basename $0` oldversion newversion" ; }
[ $# -eq 2 ] || { usage >&2 ; exit 1 ; }
OLDVERSION="$1"
VERSION="$2"
vi CHANGELOG.md
BUMP="CMakeLists.txt doc/Doxyfile doc/FreeBSD-Makefile doc/man/man*/* doc/man/index.html python/setup.py rust/*/Cargo.toml rust/libnotcurses-sys/build.rs tools/notcurses.spec"
for i in $BUMP ; do
sed -i -e "s/$OLDVERSION/$VERSION/g" $i
done
git commit -a -m v$VERSION
git push
git pull
git tag -a v$VERSION -m "v$VERSION -s"
git push origin --tags
git pull
wget https://github.com/dankamongmen/notcurses/archive/v$VERSION.tar.gz
gpg --sign --armor --detach-sign v$VERSION.tar.gz
echo "Cut $VERSION. Now upload the GPG signature to https://github.com/dankamongmen/notcurses/releases"
Loading…
Cancel
Save