aboutsummaryrefslogtreecommitdiff
path: root/tools/mhmake/makebison.bat
blob: 5ee3dee5068c0aeb3f093b32e81cee7e10cf4fc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
setlocal
if not isdir src\parser mkdir src\parser

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

:AddStdAfx
rename /q %file %tempfile
echo #include "stdafx.h" > %file
type %tempfile >> %file
del /q %tempfile
RETURN

:END
endlocal