]> Creatis software - creaToolsTools.git/blob - Install_ThirdParty/scripts/cleanAll.bat
Bug #1908
[creaToolsTools.git] / Install_ThirdParty / scripts / cleanAll.bat
1 @echo off
2
3 set thirdpartyGeneration=%1
4
5 set installpath=%thirdpartyGeneration%\thirdparty_install\%buildType%
6 set binpath=%thirdpartyGeneration%\thirdparty_bin\%buildType%
7 set sourcepath=%thirdpartyGeneration%\thirdparty_source\%buildType%
8 set LogFolder=%thirdpartyGeneration%\installLog
9
10 echo -----------------------------------
11 echo -------Removing Folders------------
12 echo -----------------------------------
13
14 if %EEDcleanSOURCES%==FALSE GOTO SKIPCLEANSOURCES
15 rmdir /S /Q %sourcepath%
16 :SKIPCLEANSOURCES
17
18 if %EEDcleanBIN%==FALSE GOTO SKIPCLEANBIN
19 rmdir /S /Q %binpath%
20 :SKIPCLEANBIN
21
22 if %EEDcleanINSTALL%==FALSE GOTO SKIPCLEANINSTALL
23 rmdir /S /Q %installpath%
24 :SKIPCLEANINSTALL
25
26 if %EEDcleanLOGS%==FALSE GOTO SKIPCLEANLOGS
27 rmdir /S /Q %LogFolder%
28 :SKIPCLEANLOGS
29
30 echo -----------------------------------
31 echo -------Creating Folders------------
32 echo -----------------------------------
33
34 mkdir %thirdpartyGeneration%
35 cd  %thirdpartyGeneration%
36 mkdir %sourcepath%
37 mkdir %binpath%
38 mkdir %installpath%
39 mkdir %LogFolder%