Skip to content
This repository
Browse code

[WIN32] added a prepare-env script for jenkins to clean the environme…

…nt a little but keep the build deps.
  • Loading branch information...
commit e9fa43c6ddc2769446949ffe9aeaa69d8ae72af8 1 parent 2cbf2c6
wsoltys authored March 29, 2013

Showing 1 changed file with 20 additions and 0 deletions. Show diff stats Hide diff stats

  1. 20  tools/buildsteps/win32/prepare-env.bat
20  tools/buildsteps/win32/prepare-env.bat
... ...
@@ -0,0 +1,20 @@
  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 -xf
  11
+git clean -xf
  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

0 notes on commit e9fa43c

Please sign in to comment.
Something went wrong with that request. Please try again.