e1f45dd0c5a556e671adcfb45bf4c49bbb9b007a
2 # This is for the benefit of the upstream maintainers of GNU adns
4 # * Maybe rerun autoconf
5 # * Ensure changelog reflects changes
6 # * Ensure NEWS reflects changes
7 # * Maybe update MAJOR and/or MINOR in common.make.in
8 # * Update DISTVERSION in Makefile.in
9 # * Update ADNS_VERSION_STRING in client/client.h
12 # ./RELEASE-CHECKLIST [--real] <version>
14 # * On chiark, maybe, replace ~ian/public-html/adns/current
15 # with symlink to web-$(version) (as directed by script)
17 # * Send release announcement (use last one as template)
19 # * Update DISTVERSION, ADNS_VERSION_STRING and start new changelog entry
23 fail
() { echo >&2 "$0: $*"; exit 16; }
26 if [ "x$1" = x--real
]; then
30 if [ $# != 1 ]; then fail
"wrong # arguments"; fi
33 version
=`sed -n <Makefile.in 's/^DISTVERSION=[ ]*//p'`
35 if [ "x$version" != "x$wantversion" ]; then
36 fail
"you say version $wantversion but tree is $version"
39 gpgkey
='-u 0x48B50D39'
40 chiark
=chiark
:/u
/ian
/public-html
/adns
43 x
() { echo "----- $* -----"; "$@"; }
44 wx
() { if $real; then x
"$@"; else echo "WOULD: $*"; fi; }
54 distfile
=adns-
$version.
tar.gz
57 tag
=adns-
${version//\~/-}
60 wx gpg
--detach-sign
$distfile
61 wx git tag
-s
$gpgkey -m
"adns release $version" $tag
62 wx git push origin
$tag~
0:master
$tag
64 distfiles
="$distfile $distfile.sig"
65 wx rsync
-vP
$distfiles $chiarkftp/
67 wx rsync
-rvP web
/.
$chiark/$webout
69 wx sha256sum
$distfiles
71 if ! $real; then echo "NOT REAL"; exit 0; fi
75 TO UPDATE WEB PAGE DOCS:
79 ln -s $webout docs.tmp