Make: Fix configure generated for dist-client

Commit 1ec9b94 broke regeneration of configure for dist-client: it
uses .tarball-version, which exists only in the tarball, not in the
source tree.

Generating the client's autoconf stuff into the source tree is a
questionable idea anyway, as it won't run there.  Generate it while
building the tarball instead.

Bonus: doesn't distribute a useless .dirty-stamp.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2017-08-13 14:11:06 +02:00
parent 63c6dd6896
commit 10ddaca6b1
3 changed files with 19 additions and 26 deletions

View file

@ -0,0 +1,13 @@
#!/bin/sh -e
if [ $# = 0 ]; then
echo "Usage: $0 NAME VERSION (FILE | -C DIR)..."
exit 1
fi
cd $1-$2
printf "%s" $2 >.tarball-version
cat m4/*.m4 >aclocal.m4
autoconf
autoheader
rm -rf m4 autom4te.cache