aboutsummaryrefslogtreecommitdiffstats
path: root/win32/dobison.cmd
diff options
context:
space:
mode:
Diffstat (limited to 'win32/dobison.cmd')
-rwxr-xr-xwin32/dobison.cmd5
1 files changed, 5 insertions, 0 deletions
diff --git a/win32/dobison.cmd b/win32/dobison.cmd
index 0338e5e..e1e3487 100755
--- a/win32/dobison.cmd
+++ b/win32/dobison.cmd
@@ -4,6 +4,7 @@ rem prefix - passed to bison as -p<prefix>
rem mode - either debug or release
rem target - generated parser file name without extension
rem source - input to bison
+rem headercopydir - directory to receive a copy of the header
if "%2"=="debug" (set flags=-tvdo) else (set flags=-vdo)
@@ -12,7 +13,11 @@ bison --help >NUL
if errorlevel 1 goto nobison
rem Run bison.
+echo bison -p%1 %flags%%3.cpp %4
+echo move %3.hpp %3.h
bison -p%1 %flags%%3.cpp %4 && move %3.hpp %3.h
+echo copy %3.h %5
+copy %3.h %5
exit
:nobison