2020-04-19 06:23:08 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2020-07-27 01:21:06 +00:00
|
|
|
usage() { echo "usage: `basename $0` oldversion newversion quip" ; }
|
2020-04-19 06:23:08 +00:00
|
|
|
|
2020-07-27 01:21:06 +00:00
|
|
|
[ $# -eq 3 ] || { usage >&2 ; exit 1 ; }
|
2020-04-19 06:23:08 +00:00
|
|
|
|
|
|
|
OLDVERSION="$1"
|
|
|
|
VERSION="$2"
|
2020-07-27 01:21:06 +00:00
|
|
|
QUIP="$3"
|
2020-04-19 06:23:08 +00:00
|
|
|
|
2020-05-11 01:38:46 +00:00
|
|
|
vi NEWS.md
|
2020-04-19 06:23:08 +00:00
|
|
|
|
2020-05-07 05:37:52 +00:00
|
|
|
git clean -f -d -x
|
2020-07-27 01:21:06 +00:00
|
|
|
|
|
|
|
# bump version numbers wherever they occur (wherever we enumerate them, anyway)
|
2020-08-16 12:54:22 +00:00
|
|
|
BUMP="CMakeLists.txt doc/Doxyfile doc/man/man*/* doc/man/index.html python/setup.py python/notcurses-pydemo.1.md rust/Cargo.toml rust/build/build.rs"
|
2020-04-19 06:23:08 +00:00
|
|
|
for i in $BUMP ; do
|
|
|
|
sed -i -e "s/$OLDVERSION/$VERSION/g" $i
|
|
|
|
done
|
2020-07-27 01:21:06 +00:00
|
|
|
|
|
|
|
# do a build with Doxygen enabled, upload docs, clean it up
|
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
cmake -DUSE_DOXYGEN=on ..
|
|
|
|
make -j
|
|
|
|
make test
|
2020-07-27 01:25:34 +00:00
|
|
|
ssh qemfd.net rm -rf /var/www/notcurses/html
|
|
|
|
scp -r html qemfd.net:/var/www/notcurses/html
|
2020-07-27 01:21:06 +00:00
|
|
|
scp *.html ../doc/man/index.html qemfd.net:/var/www/notcurses/
|
|
|
|
cd ..
|
|
|
|
rm -rf build
|
|
|
|
|
|
|
|
# if that all worked, commit, push, and tag
|
2020-04-19 06:23:08 +00:00
|
|
|
git commit -a -m v$VERSION
|
|
|
|
git push
|
|
|
|
git pull
|
2020-05-17 12:12:26 +00:00
|
|
|
git tag -a v$VERSION -m v$VERSION -s
|
2020-04-19 06:23:08 +00:00
|
|
|
git push origin --tags
|
|
|
|
git pull
|
2020-07-27 01:21:06 +00:00
|
|
|
TARBALL=v$VERSION.tar.gz
|
|
|
|
wget https://github.com/dankamongmen/notcurses/archive/$TARBALL
|
|
|
|
gpg --sign --armor --detach-sign $TARBALL
|
2020-05-07 05:51:25 +00:00
|
|
|
rm v$VERSION.tar.gz
|
2020-04-19 06:23:08 +00:00
|
|
|
|
2020-07-27 01:21:06 +00:00
|
|
|
echo "Cut $VERSION, signed to $TARBALL.asc"
|
2020-05-07 05:51:25 +00:00
|
|
|
echo "Now upload the sig to https://github.com/dankamongmen/notcurses/releases"
|
|
|
|
echo "The bastards are trying to immanentize the Eschaton"
|
2020-07-27 01:21:06 +00:00
|
|
|
|
|
|
|
# requires token in ~/.netrc
|
2020-07-27 01:32:24 +00:00
|
|
|
github-release dankamongmen/notcurses create v$VERSION --name "v$VERSION—$QUIP" --publish $TARBALL.asc
|
2020-07-27 01:21:06 +00:00
|
|
|
|
2020-08-16 14:07:10 +00:00
|
|
|
cd python
|
2020-08-03 06:52:27 +00:00
|
|
|
python3 setup.py sdist
|
|
|
|
twine upload -s -udankamongmen dist/*
|
|
|
|
|
2020-07-27 01:32:24 +00:00
|
|
|
# FIXME need to install fresh notcurses for rust to compile
|
2020-08-16 12:55:38 +00:00
|
|
|
cd ../rust
|
2020-07-27 01:21:06 +00:00
|
|
|
cargo clean
|
|
|
|
cargo publish
|
2020-08-01 21:58:42 +00:00
|
|
|
# FIXME and at this point, uninstall, yuck
|