chiark / gitweb /
Fixed spurious failure with Interrupted system call; Fixed race when fd closed at...
[userv.git] / buildship
index 886909f..e10562b 100755 (executable)
--- a/buildship
+++ b/buildship
@@ -2,7 +2,7 @@
 # to release, check out a fresh copy and then run this
 
 set -e
-version=`sed -n 's/^#define 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'`