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

check_submodules.cmd « windows « build_files - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c0c64148dd75cbc2333a424fcb9e95a569e5718a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
if NOT exist "%BLENDER_DIR%/source/tools" (
	echo Checking out sub-modules 
	if not "%GIT%" == "" (
		"%GIT%" submodule update --init --recursive --progress
		if errorlevel 1 goto FAIL
		"%GIT%" submodule foreach git checkout master
		if errorlevel 1 goto FAIL
		"%GIT%" submodule foreach git pull --rebase origin master
		if errorlevel 1 goto FAIL
		goto EOF
	) else (
		echo Blender submodules not found, and git not found in path to retrieve them.
		goto FAIL
	)
)
goto EOF

:FAIL
exit /b 1
:EOF