From ed26bc80ac1c02438a21e40963b0560d5a6ae262 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sun, 13 Aug 2017 14:18:37 +0200 Subject: [PATCH] Make: Make "make dist" catch stale configure 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 --- src/scripts/gen-tarball-version | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/scripts/gen-tarball-version b/src/scripts/gen-tarball-version index 20398afa3..222dc9864 100755 --- a/src/scripts/gen-tarball-version +++ b/src/scripts/gen-tarball-version @@ -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 -- 2.43.0