summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorAkim Demaille <akim@epita.fr>2002-04-24 09:44:31 +0000
committerAkim Demaille <akim@epita.fr>2002-04-24 09:44:31 +0000
commitc47dc59adc0864783aedce4c60a35016716aef98 (patch)
tree8355edb3c9c33a8147509817a4c5cfec06152dac /bootstrap
parent83c1796f411f126fb64bffeccb866004f4ee9dde (diff)
downloadbison-c47dc59adc0864783aedce4c60a35016716aef98.tar.gz
Also pass --install to the second invocation of autoreconf, to let automake install its files.
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap23
1 files changed, 16 insertions, 7 deletions
diff --git a/bootstrap b/bootstrap
index 48b2b36b..11479329 100755
--- a/bootstrap
+++ b/bootstrap
@@ -2,13 +2,22 @@
echo "Bootstrapping CVS Bison..."
-autoreconf --force --install --verbose
+# This will run gettextize which will patch some files, and cause
+# autoconf to choke (because for instance intl/Makefile is registered
+# several times).
+autoreconf --verbose --install --force
-# Because of Gettext
-mv -f m4/Makefile.am~ m4/Makefile.am
-mv -f Makefile.am~ Makefile.am
-mv -f configure.in~ configure.in
-touch m4/Makefile.am Makefile.am configure.in
+# gettextize modified these files: restore them.
+for f in m4/Makefile.am Makefile.am configure.in
+do
+ if test -f "$f~"; then
+ mv -f "$f~" "$f"
+ touch "$f"
+ fi
+done
rm -f po/Makevars.template
-autoreconf --verbose
+# Since some files were restored, some files must probably be remade.
+# But automake could not install all of its files, so pass --install
+# for it.
+autoreconf --verbose --install