aboutsummaryrefslogtreecommitdiff
path: root/tools/mhmake/makelex.bat
blob: 4d1b24b996f9285ed956ab49651a98d1816298d1 (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

"flex++" -8 -Ssrc\flexskel.cc -Hsrc\flexskel.h -hsrc\parser\mhmakelexer.h -osrc\parser\mhmakelexer.cpp src\mhmakelexer.l

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

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

endlocal