aboutsummaryrefslogtreecommitdiff
path: root/tools/mhmake/makebison.bat
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2009-07-29 09:33:25 +0000
committermarha <marha@users.sourceforge.net>2009-07-29 09:33:25 +0000
commit7ca654bf54c45b42638b4a77930e5de6eab2c54f (patch)
treef950d720ca04d04c18dcd317d43755a1556465a9 /tools/mhmake/makebison.bat
parent437bca524595d1007f37988e862db8bfeff329b0 (diff)
downloadvcxsrv-7ca654bf54c45b42638b4a77930e5de6eab2c54f.tar.gz
vcxsrv-7ca654bf54c45b42638b4a77930e5de6eab2c54f.tar.bz2
vcxsrv-7ca654bf54c45b42638b4a77930e5de6eab2c54f.zip
mhmake now compiles.
Diffstat (limited to 'tools/mhmake/makebison.bat')
-rw-r--r--tools/mhmake/makebison.bat19
1 files changed, 7 insertions, 12 deletions
diff --git a/tools/mhmake/makebison.bat b/tools/mhmake/makebison.bat
index 5ee3dee50..db9427a7f 100644
--- a/tools/mhmake/makebison.bat
+++ b/tools/mhmake/makebison.bat
@@ -1,21 +1,16 @@
+@echo off
setlocal
-if not isdir src\parser mkdir src\parser
+if not exist src\parser mkdir src\parser
-bison++ -d -Ssrc\bison.cc -Hsrc\bison.h -hsrc\parser\mhmakeparser.h -osrc\parser\mhmakeparser.cpp src\mhmakeparser.y
+"bison++" -d -Ssrc\bison.cc -Hsrc\bison.h -hsrc\parser\mhmakeparser.h -osrc\parser\mhmakeparser.cpp src\mhmakeparser.y
set file=src\parser\mhmakeparser.cpp
set tempfile=src\parser\temp12345.5678
-GOSUB AddStdAfx
-goto END
+move %file% %tempfile%
+echo #include "stdafx.h" > %file%
+type %tempfile% >> %file%
+del /q %tempfile%
-:AddStdAfx
-rename /q %file %tempfile
-echo #include "stdafx.h" > %file
-type %tempfile >> %file
-del /q %tempfile
-RETURN
-
-:END
endlocal