@echo off set thirdpartyGeneration=%1 set installpath=%thirdpartyGeneration%\thirdparty_install\%buildType% set binpath=%thirdpartyGeneration%\thirdparty_bin\%buildType% set sourcepath=%thirdpartyGeneration%\thirdparty_source\%buildType% set LogFolder=%thirdpartyGeneration%\installLog echo ----------------------------------- echo -------Removing Folders------------ echo ----------------------------------- if %EEDcleanSOURCES%==FALSE GOTO SKIPCLEANSOURCES rmdir /S /Q %sourcepath% :SKIPCLEANSOURCES if %EEDcleanBIN%==FALSE GOTO SKIPCLEANBIN rmdir /S /Q %binpath% :SKIPCLEANBIN if %EEDcleanINSTALL%==FALSE GOTO SKIPCLEANINSTALL rmdir /S /Q %installpath% :SKIPCLEANINSTALL if %EEDcleanLOGS%==FALSE GOTO SKIPCLEANLOGS rmdir /S /Q %LogFolder% :SKIPCLEANLOGS echo ----------------------------------- echo -------Creating Folders------------ echo ----------------------------------- mkdir %thirdpartyGeneration% cd %thirdpartyGeneration% mkdir %sourcepath% mkdir %binpath% mkdir %installpath% mkdir %LogFolder%