diff options
Diffstat (limited to 'tools/mhmake/makebison.bat')
-rw-r--r-- | tools/mhmake/makebison.bat | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/mhmake/makebison.bat b/tools/mhmake/makebison.bat new file mode 100644 index 000000000..ccbe58f54 --- /dev/null +++ b/tools/mhmake/makebison.bat @@ -0,0 +1,16 @@ +@echo off
+setlocal
+
+cd %1
+"..\bison++" -d -S%3 -H%4 -h%5 -o%6 %2
+
+set file=%6
+set tempfile=%RANDOM%bison.tmp
+
+move %file% %tempfile%
+echo #include "stdafx.h" > %file%
+type %tempfile% >> %file%
+del /q %tempfile%
+
+endlocal
+
|