diff options
Diffstat (limited to 'build_files/windows/update_sources.cmd')
-rw-r--r-- | build_files/windows/update_sources.cmd | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/build_files/windows/update_sources.cmd b/build_files/windows/update_sources.cmd index 3906af27cb9..1f571eaf92d 100644 --- a/build_files/windows/update_sources.cmd +++ b/build_files/windows/update_sources.cmd @@ -1,16 +1,18 @@ -if "%SVN%" == "" ( - echo svn not found, cannot update libraries - goto UPDATE_GIT +if "%BUILD_UPDATE_SVN%" == "1" ( + if "%SVN%" == "" ( + echo svn not found, cannot update libraries + goto UPDATE_GIT + ) + "%SVN%" up "%BLENDER_DIR%/../lib/*" ) -"%SVN%" up "%BLENDER_DIR%/../lib/*" - :UPDATE_GIT -if "%GIT%" == "" ( - echo Git not found, cannot update code - goto EOF +if "%BUILD_UPDATE_GIT%" == "1" ( + if "%GIT%" == "" ( + echo Git not found, cannot update code + goto EOF + ) + "%GIT%" pull --rebase + "%GIT%" submodule foreach git pull --rebase origin master ) -"%GIT%" pull --rebase -"%GIT%" submodule foreach git pull --rebase origin master - :EOF |