[WIN32] git clean directories as well but keep our downloaded depends
[vuplus_xbmc] / tools / buildsteps / win32 / prepare-env.bat
1 @ECHO OFF
2
3 ECHO Workspace is %WORKSPACE%
4
5 rem git clean the untracked files but not the directories
6 rem to keep the downloaded dependencies
7 rem we assume git in path as this is a requirement
8
9 cd %WORKSPACE%
10 ECHO running git clean -xfd -e "project/BuildDependencies/downloads" -e "project/BuildDependencies/downloads2"
11 git clean -xfd -e "project/BuildDependencies/downloads" -e "project/BuildDependencies/downloads2"
12
13 rem cleaning additional directories
14 ECHO delete build directories
15 IF EXIST %WORKSPACE%\project\Win32BuildSetup\BUILD_WIN32 rmdir %WORKSPACE%\project\Win32BuildSetup\BUILD_WIN32 /S /Q
16 IF EXIST %WORKSPACE%\project\Win32BuildSetup\dependencies rmdir %WORKSPACE%\project\Win32BuildSetup\dependencies /S /Q
17
18 IF EXIST %WORKSPACE%\project\BuildDependencies\include rmdir %WORKSPACE%\project\BuildDependencies\include /S /Q
19 IF EXIST %WORKSPACE%\project\BuildDependencies\lib rmdir %WORKSPACE%\project\BuildDependencies\lib /S /Q
20 IF EXIST %WORKSPACE%\project\BuildDependencies\msys rmdir %WORKSPACE%\project\BuildDependencies\msys /S /Q
21
22 IF EXIST %WORKSPACE%\project\VS2010Express\XBMC rmdir %WORKSPACE%\project\VS2010Express\XBMC /S /Q
23 IF EXIST %WORKSPACE%\project\VS2010Express\objs rmdir %WORKSPACE%\project\VS2010Express\objs /S /Q
24 IF EXIST %WORKSPACE%\project\VS2010Express\libs rmdir %WORKSPACE%\project\VS2010Express\libs /S /Q