chiark / gitweb /
Server checks itself every hour, and logs with pid.
[userv.git] / buildship
index f01b03e43233779586c0d5dd92b0148ae4e64df8..e10562b2c09eba7ca89e416f3976f00ecb2f7bc7 100755 (executable)
--- a/buildship
+++ b/buildship
@@ -2,12 +2,7 @@
 # to release, check out a fresh copy and then run this
 
 set -e
-if test $# = 0
-then
-       echo >&2 'usage: buildship <version>'
-       exit 1
-fi
-version=$1
+version="`sed -n '/^userv (.*)/!d; s/^userv (//; s/).*//; p; q' Changelog`"
 targz=userv-$version.tar.gz
 tag=`echo release-$version | sed -e 's/\./-/g'`