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.bat8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/mhmake/makelex.bat b/tools/mhmake/makelex.bat
index 4d1b24b99..0705f4bb1 100644
--- a/tools/mhmake/makelex.bat
+++ b/tools/mhmake/makelex.bat
@@ -1,11 +1,11 @@
@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
+cd %1
+"..\flex++" -8 -S%3 -H%4 -h%5 -o%6 %2
-set file=src\parser\mhmakelexer.cpp
-set tempfile=src\parser\temp12345.5678
+set file=%6
+set tempfile=%RANDOM%lex.tmp
move %file% %tempfile%
echo #include "stdafx.h" > %file%