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.bat16
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/mhmake/makelex.bat b/tools/mhmake/makelex.bat
new file mode 100644
index 000000000..0705f4bb1
--- /dev/null
+++ b/tools/mhmake/makelex.bat
@@ -0,0 +1,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
+