summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorMathieu Lirzin <mthl@gnu.org>2017-08-31 19:23:42 +0200
committerMathieu Lirzin <mthl@gnu.org>2017-08-31 19:23:42 +0200
commitf389ecb89acb7f51b6a9e8f41ebad3e45ac905a2 (patch)
tree9380abfd73fe36221b5378562629ef2da539e862 /bootstrap
parentcc7231cc3668a387ae36905efca11f9d236c8df6 (diff)
parente94c0186d98d70df2f18c17622ee75f80f95e17b (diff)
downloadautomake-f389ecb89acb7f51b6a9e8f41ebad3e45ac905a2.tar.gz
Merge branch 'minor'
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap14
1 files changed, 3 insertions, 11 deletions
diff --git a/bootstrap b/bootstrap
index 82ed9937b..953577b05 100755
--- a/bootstrap
+++ b/bootstrap
@@ -35,20 +35,15 @@ export AUTOCONF # might be used by aclocal and/or automake
export AUTOM4TE # ditto
: ${PERL=perl}
-BOOTSTRAP_SHELL=${BOOTSTRAP_SHELL-/bin/sh}
-
# Variables to substitute.
VERSION=`sed -ne '/AC_INIT/s/^[^[]*\[[^[]*\[\([^]]*\)\].*$/\1/p' configure.ac`
+APIVERSION=`sed -n 's/^APIVERSION=//p' configure.ac`
PACKAGE=automake
datadir=.
# This should be automatically updated by the 'update-copyright'
# rule of our Makefile.
RELEASE_YEAR=2017
-# Read the rule for calculating APIVERSION and execute it.
-apiver_cmd=`sed -ne 's/\[\[/[/g;s/\]\]/]/g;/^APIVERSION=/p' configure.ac`
-eval "$apiver_cmd"
-
# Sanity checks.
if test -z "$VERSION"; then
echo "$me: cannot find VERSION" >&2
@@ -96,11 +91,8 @@ dosubst automake-$APIVERSION/Automake/Config.in \
dosubst m4/amversion.in m4/amversion.m4
# Create temporary replacement for aclocal and automake.
-for p in bin/aclocal bin/automake; do
- dosubst $p.in $p.tmp
- $PERL -w bin/gen-perl-protos $p.tmp > $p.tmp2
- mv -f $p.tmp2 $p.tmp
-done
+dosubst bin/aclocal.in bin/aclocal.tmp
+dosubst bin/automake.in bin/automake.tmp
# Create required makefile snippets.
$PERL ./gen-testsuite-part > t/testsuite-part.tmp