chiark / gitweb /
Internal code review complete.
[userv.git] / buildship
index f01b03e43233779586c0d5dd92b0148ae4e64df8..b6d13f3e9edc55499a26026da86c978953f6aac9 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 's/^VERSION=\(.*\) *$/\1/p' Makefile`
 targz=userv-$version.tar.gz
 tag=`echo release-$version | sed -e 's/\./-/g'`