entered into RCS
authorRichard M. Stallman <rms@gnu.org>
Fri, 25 Sep 1992 22:06:24 +0000 (22:06 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 25 Sep 1992 22:06:24 +0000 (22:06 +0000)
configure.bat [new file with mode: 0644]

diff --git a/configure.bat b/configure.bat
new file mode 100644 (file)
index 0000000..f92b00a
--- /dev/null
@@ -0,0 +1,28 @@
+@echo off
+echo Configuring bison for go32
+rem This batch file assumes a unix-type "sed" program
+
+echo # Makefile generated by "configure.bat"> Makefile
+echo all.dos : bison >> Makefile
+
+if exist config.sed del config.sed
+
+echo "s/@srcdir@/./g                                   ">> config.sed
+echo "s/@CC@/gcc/g                                     ">> config.sed
+echo "s/@INSTALL@//g                                   ">> config.sed
+echo "s/@INSTALL_PROGRAM@//g                           ">> config.sed
+echo "s/@INSTALL_DATA@//g                              ">> config.sed
+echo "s/@DEFS@/-DHAVE_STRERROR/g                       ">> config.sed
+echo "s/@LIBS@//g                                      ">> config.sed
+echo "s/@ALLOCA@//g                                    ">> config.sed
+
+echo "/^bison[         ]*:/,/-o/ {                             ">> config.sed
+echo "  s/     \$(CC)/ >bison.rf/                      ">> config.sed
+echo "  /-o/ a\                                                ">> config.sed
+echo " $(CC) @bison.rf                                 ">> config.sed
+echo "}                                                        ">> config.sed
+
+sed -e "s/^\"//" -e "s/\"$//" -e "s/[  ]*$//" config.sed > config2.sed
+sed -f config2.sed Makefile.in >> Makefile
+del config.sed
+del config2.sed