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:
parent
10ddaca6b1
commit
ed26bc80ac
1 changed files with 7 additions and 0 deletions
|
@ -9,3 +9,10 @@ nv=$1-$2
|
||||||
|
|
||||||
printf "%s" "$2" >$nv/.tarball-version
|
printf "%s" "$2" >$nv/.tarball-version
|
||||||
>$nv/.dirty-stamp
|
>$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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue