chiark / gitweb /
Bugfix.
[userv.git] / buildship
index f01b03e43233779586c0d5dd92b0148ae4e64df8..ecc1b39f1dcdee3d29d88faaabcf3f109ca10fd5 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/^#define VERSION \".*\" *$/\1/'`
 targz=userv-$version.tar.gz
 tag=`echo release-$version | sed -e 's/\./-/g'`