]> git.pond.sub.org Git - empserver/blobdiff - src/scripts/gen-tarball-version
Make: Make src/scripts/gen-tarball-version a bit nicer
[empserver] / src / scripts / gen-tarball-version
index 222dc9864a6c69b473bf6e133e0b9993c3b2a84a..2c49b1c4bdb257ed27ce45a39fdcbeeebf0a593a 100755 (executable)
@@ -5,14 +5,14 @@ if [ $# = 0 ]; then
     exit 1
 fi
 
-nv=$1-$2
+cd "$1-$2"
 
-printf "%s" "$2" >$nv/.tarball-version
->$nv/.dirty-stamp
+printf "%s" "$2" >.tarball-version
+>.dirty-stamp
 
-if [ "$2" != "`$nv/configure --version | sed -n '/^Wolfpack Empire/s/.* //p'`" ]
+if [ "$2" != "`./configure --version | sed -n '/^Wolfpack Empire/s/.* //p'`" ]
 then
     echo "Output of configure --version does not match $2" >&2
-    echo "Need to regenerate stale configure?" >&2
+    echo "Need to regenerate stale configure with 'autoconf -f'?" >&2
     exit 1
 fi