chiark / gitweb /
RELEASE-CHECKLIST: Require version argument
[adns.git] / RELEASE-CHECKLIST
index 9001461b4837a8d0ba0835d3f967d74de1c0af51..574fa1b7ab6589dec174ac3fd65e3191c9b780b0 100755 (executable)
@@ -9,17 +9,28 @@
 #  * Update ADNS_VERSION_STRING in client/client.h
 #
 #  * Run this script
-#      ./RELEASE-CHECKLIST
+#      ./RELEASE-CHECKLIST <version>
 #
 #  * On chiark, maybe, replace ~ian/public-html/adns/current
 #    with symlink to web-$(version) (as directed by script)
 #
 #  * Send release announcement (use last one as template)
+#
+#  * Update DISTVERSION, ADNS_VERSION_STRING and start new changelog entry
 
 set -e
 
+fail () { echo >&2 "$0: $*"; exit 16; }
+
+if [ $# != 1 ]; then fail "wrong # arguments"; fi
+wantversion="$1"
+
 version=`sed -n <Makefile.in 's/^DISTVERSION=[ ]*//p'`
 
+if [ "x$version" != "x$wantversion" ]; then
+       fail "you say version $wantversion but tree is $version"
+fi
+
 gpgkey='-u 0x48B50D39'
 chiark=chiark:/u/ian/public-html/adns
 chiarkftp=$chiark/ftp