diff --git a/buildscript/modules/winflexbison.cmd b/buildscript/modules/winflexbison.cmd index 7e0df52a..2f1e9c83 100644 --- a/buildscript/modules/winflexbison.cmd +++ b/buildscript/modules/winflexbison.cmd @@ -7,4 +7,8 @@ @set flexloc=%devroot%\flexbison @IF %flexstate%==1 IF NOT EXIST "%devroot%\flexbison\win_flex.exe" set flexloc=%msysloc%\usr\bin @IF %flexstate%==1 IF NOT EXIST "%devroot%\flexbison\win_flex.exe" IF NOT EXIST "%msysloc%\usr\bin\flex.exe" set flexstate=0 -@endlocal&set flexstate=%flexstate%&set flexloc=%flexloc% \ No newline at end of file +@endlocal&set flexstate=%flexstate%&set flexloc=%flexloc% +@IF %flexstate%==1 IF "%flexloc%"=="%msysloc%\usr\bin" IF EXIST "%msysloc%\flexbison\" RD /S /Q "%msysloc%\flexbison" +@IF %flexstate%==1 IF "%flexloc%"=="%msysloc%\usr\bin" ROBOCOPY "%msysloc%\usr" "%msysloc%\flexbison" /E +@IF %flexstate%==1 IF "%flexloc%"=="%msysloc%\usr\bin" IF EXIST "%msysloc%\flexbison\bin\zstd.exe" del "%msysloc%\flexbison\bin\zstd.exe" +@IF %flexstate%==1 IF "%flexloc%"=="%msysloc%\usr\bin" set flexloc=%msysloc%\flexbison\bin \ No newline at end of file