aboutsummaryrefslogtreecommitdiff
path: root/tools/mhmake/makebison.bat
blob: ccbe58f5491fac652fa9c1835f34397f863be2fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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