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

set file=src\parser\mhmakeparser.cpp
set tempfile=src\parser\temp12345.5678

move %file% %tempfile%
echo #include "stdafx.h" > %file%
type %tempfile% >> %file%
del /q %tempfile%

endlocal