aboutsummaryrefslogtreecommitdiff
path: root/tools/mhmake/makelex.bat
blob: 0705f4bb1da0aabac1e98c344b466ddae821d868 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
@echo off
setlocal

cd %1
"..\flex++" -8 -S%3 -H%4 -h%5 -o%6 %2

set file=%6
set tempfile=%RANDOM%lex.tmp

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

endlocal