Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Molenkamp <github@lazydodo.com>2019-05-18 19:34:33 +0300
committerRay Molenkamp <github@lazydodo.com>2019-05-18 19:34:33 +0300
commitdb3f3d4d236f873aaadf0cbefee5139a7887d9af (patch)
tree08526e87c8932be43fb33af0b2a4ffae32448768 /build_files/windows/update_sources.cmd
parent94db2c1f32438ad988b1314e0f4d2d1349784547 (diff)
make.bat: Add option to only update sources from git.
SVN takes a long time to sync even if there are no updates, the `code_update` parameter gives the option opt out of the SVN updates. This is a developer option, people just wanting to build blender and not do any development are highly recommended to keep using the `update` method.
Diffstat (limited to 'build_files/windows/update_sources.cmd')
-rw-r--r--build_files/windows/update_sources.cmd24
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