aboutsummaryrefslogtreecommitdiff
path: root/tools/bison++/configure.bat
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2010-11-19 15:19:19 +0000
committermarha <marha@users.sourceforge.net>2010-11-19 15:19:19 +0000
commitd12ad2fa1165573df95c857ce59f582f964b7cee (patch)
tree8d5546283940c928290a23c50748b3f5c431ef06 /tools/bison++/configure.bat
parentbd5413c3a7e500fa8c8ccd68a33d2fcc4c172e28 (diff)
parent12f606ce06ef926f366a03079c5e3107c23f18af (diff)
downloadvcxsrv-d12ad2fa1165573df95c857ce59f582f964b7cee.tar.gz
vcxsrv-d12ad2fa1165573df95c857ce59f582f964b7cee.tar.bz2
vcxsrv-d12ad2fa1165573df95c857ce59f582f964b7cee.zip
svn merge ^/branches/released .
Diffstat (limited to 'tools/bison++/configure.bat')
-rw-r--r--tools/bison++/configure.bat28
1 files changed, 28 insertions, 0 deletions
diff --git a/tools/bison++/configure.bat b/tools/bison++/configure.bat
new file mode 100644
index 000000000..f92b00ad5
--- /dev/null
+++ b/tools/bison++/configure.bat
@@ -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