]> git.pond.sub.org Git - empserver/commitdiff
Make: Make "make dist" catch stale configure
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 13 Aug 2017 12:18:37 +0000 (14:18 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 13 Aug 2017 12:31:07 +0000 (14:31 +0200)
As commit 1ec9b94 explains, the version reported by configure is fixed
at configure generation time.  "make dist" happily distributes a stale
one.  Not terrible, because all that's stale is the output of
configure --version, just embarrassing.

Make gen-tarball-version fail when the configure --version doesn't
match the tarball version.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/scripts/gen-tarball-version

index 20398afa30c4a8dcf502f96c21184bfbc013e23f..222dc9864a6c69b473bf6e133e0b9993c3b2a84a 100755 (executable)
@@ -9,3 +9,10 @@ nv=$1-$2
 
 printf "%s" "$2" >$nv/.tarball-version
 >$nv/.dirty-stamp
+
+if [ "$2" != "`$nv/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
+    exit 1
+fi