X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=win32%2Fdobison.cmd;h=72224f04a8c8a29fed37709149006b9cbea82d29;hb=419852ca8a01aecde4c0e20af6b7bd6450e70f87;hp=0338e5e33b3a11d56c4050f24ba8da3c059e361f;hpb=8e77a8cdd5cb3fcec95e1c966a0313f23b766f3e;p=oota-llvm.git diff --git a/win32/dobison.cmd b/win32/dobison.cmd index 0338e5e33b3..72224f04a8c 100755 --- a/win32/dobison.cmd +++ b/win32/dobison.cmd @@ -4,6 +4,7 @@ rem prefix - passed to bison as -p 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,11 +13,15 @@ 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 echo Bison not found. Using pre-generated files. -copy %~pn4.cpp.cvs %3.cpp -copy %~pn4.h.cvs %3.h +copy %~pn4.cpp.cvs %5\%3.cpp +copy %~pn4.h.cvs %5\%3.h exit