Skip to content

Commit

Permalink
[WIN32] remove build_setup directory before the first git command to …
Browse files Browse the repository at this point in the history
…avoid problems with possible .git files.
  • Loading branch information
WiSo committed Jan 10, 2014
1 parent 98731b1 commit acd012d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tools/buildsteps/win32/prepare-env.bat
Expand Up @@ -2,17 +2,18 @@


ECHO Workspace is %WORKSPACE% ECHO Workspace is %WORKSPACE%


rem git clean the untracked files but not the directories
rem to keep the downloaded dependencies
rem we assume git in path as this is a requirement

cd %WORKSPACE% cd %WORKSPACE%
rem clean the BUILD_WIN32 at first to avoid problems with possible git files in there
IF EXIST %WORKSPACE%\project\Win32BuildSetup\BUILD_WIN32 rmdir %WORKSPACE%\project\Win32BuildSetup\BUILD_WIN32 /S /Q

rem we assume git in path as this is a requirement
rem git clean the untracked files and directories
rem but keep the downloaded dependencies
ECHO running git clean -xfd -e "project/BuildDependencies/downloads" -e "project/BuildDependencies/downloads2" ECHO running git clean -xfd -e "project/BuildDependencies/downloads" -e "project/BuildDependencies/downloads2"
git clean -xfd -e "project/BuildDependencies/downloads" -e "project/BuildDependencies/downloads2" git clean -xfd -e "project/BuildDependencies/downloads" -e "project/BuildDependencies/downloads2"


rem cleaning additional directories rem cleaning additional directories
ECHO delete build directories ECHO delete build directories
IF EXIST %WORKSPACE%\project\Win32BuildSetup\BUILD_WIN32 rmdir %WORKSPACE%\project\Win32BuildSetup\BUILD_WIN32 /S /Q
IF EXIST %WORKSPACE%\project\Win32BuildSetup\dependencies rmdir %WORKSPACE%\project\Win32BuildSetup\dependencies /S /Q IF EXIST %WORKSPACE%\project\Win32BuildSetup\dependencies rmdir %WORKSPACE%\project\Win32BuildSetup\dependencies /S /Q


IF EXIST %WORKSPACE%\project\BuildDependencies\include rmdir %WORKSPACE%\project\BuildDependencies\include /S /Q IF EXIST %WORKSPACE%\project\BuildDependencies\include rmdir %WORKSPACE%\project\BuildDependencies\include /S /Q
Expand Down

0 comments on commit acd012d

Please sign in to comment.