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 <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2017-08-13 14:18:37 +02:00
parent 10ddaca6b1
commit ed26bc80ac

View file

@ -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