]> git.saurik.com Git - bison.git/blobdiff - bootstrap
* src/skeleton.h: Fix the #endif.
[bison.git] / bootstrap
index e6c3831d4c1e8e45f78e901dcd3c63f49e2518af..63ba1749972bac173b8a9152141c7bcc104ad5bf 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -2,13 +2,21 @@
 
 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 m4/Makefile.am~ m4/Makefile.am
-mv Makefile.am~ Makefile.am
-mv configure.in~ configure.in
-touch m4/Makefile.am Makefile.am configure.in
-rm po/Makevars.template
+# 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"
+  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