aboutsummaryrefslogtreecommitdiff
path: root/tools/mhmake/makelex.bat
diff options
context:
space:
mode:
Diffstat (limited to 'tools/mhmake/makelex.bat')
-rw-r--r--tools/mhmake/makelex.bat11
1 files changed, 3 insertions, 8 deletions
diff --git a/tools/mhmake/makelex.bat b/tools/mhmake/makelex.bat
index 0705f4bb1..66d9255fa 100644
--- a/tools/mhmake/makelex.bat
+++ b/tools/mhmake/makelex.bat
@@ -1,16 +1,11 @@
@echo off
setlocal
-cd %1
-"..\flex++" -8 -S%3 -H%4 -h%5 -o%6 %2
+set M4=.\m4.exe
-set file=%6
-set tempfile=%RANDOM%lex.tmp
+"flex++" --nounistd -Ssrc/flex.skl -o%1/mhmakelexer.cpp src/mhmakelexer.l
-move %file% %tempfile%
-echo #include "stdafx.h" > %file%
-type %tempfile% >> %file%
-del /q %tempfile%
+python addstdafxh.py %1\mhmakelexer.cpp
endlocal