chiark
/
gitweb
/
~mdw
/
adns
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RELEASE-CHECKLIST: Require version argument
[adns]
/
RELEASE-CHECKLIST
diff --git
a/RELEASE-CHECKLIST
b/RELEASE-CHECKLIST
index af1cbc1571cdcc34f2a6c590fad974f808673a3b..574fa1b7ab6589dec174ac3fd65e3191c9b780b0 100755
(executable)
--- a/
RELEASE-CHECKLIST
+++ b/
RELEASE-CHECKLIST
@@
-9,7
+9,7
@@
# * Update ADNS_VERSION_STRING in client/client.h
#
# * Run this script
# * 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)
#
# * On chiark, maybe, replace ~ian/public-html/adns/current
# with symlink to web-$(version) (as directed by script)
@@
-20,8
+20,17
@@
set -e
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'`
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
gpgkey='-u 0x48B50D39'
chiark=chiark:/u/ian/public-html/adns
chiarkftp=$chiark/ftp