diff options
Diffstat (limited to 'tools/mhmake/makelex.bat')
-rw-r--r-- | tools/mhmake/makelex.bat | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/tools/mhmake/makelex.bat b/tools/mhmake/makelex.bat index 967810aad..4d1b24b99 100644 --- a/tools/mhmake/makelex.bat +++ b/tools/mhmake/makelex.bat @@ -1,21 +1,16 @@ +@echo off
setlocal
-if not isdir src\parser mkdir src\parser
+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
+"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
-GOSUB AddStdAfx
-goto END
+move %file% %tempfile%
+echo #include "stdafx.h" > %file%
+type %tempfile% >> %file%
+del /q %tempfile%
-:AddStdAfx
-rename /q %file %tempfile
-echo #include "StdAfx.h" > %file
-type %tempfile >> %file
-del /q %tempfile
-RETURN
-
-:END
endlocal
|