116d7b0042
The issue we ran into a lot is we have a python script that updates git+SVN. Which works fine most of the time, except when we have a python update in SVN, or worse a python version change. Python really doesn't enjoy having its files being deleted or changed while it is running and users generally end up with a corrupted lib folder. This change updates the library folder using svn.exe first before letting the python script run sidestepping the issue in most cases. The python script will still run and do the more elaborate work like updating git and switching SVN branches which could still run into issues cause python still doesn't like being changed while running but there's not a whole lot we can about that, for *most* people however things will just work now.
24 lines
689 B
Batchfile
24 lines
689 B
Batchfile
if "%BUILD_VS_YEAR%"=="2019" set BUILD_VS_LIBDIRPOST=vc15
|
|
if "%BUILD_VS_YEAR%"=="2022" set BUILD_VS_LIBDIRPOST=vc15
|
|
|
|
set BUILD_VS_SVNDIR=win64_%BUILD_VS_LIBDIRPOST%
|
|
set BUILD_VS_LIBDIR="%BLENDER_DIR%..\lib\%BUILD_VS_SVNDIR%"
|
|
|
|
cd %BUILD_VS_LIBDIR%
|
|
:RETRY
|
|
"%SVN%" update
|
|
if errorlevel 1 (
|
|
set /p LibRetry= "Error during update, retry? y/n"
|
|
if /I "!LibRetry!"=="Y" (
|
|
"%SVN%" cleanup
|
|
goto RETRY
|
|
)
|
|
echo.
|
|
echo Error: Download of external libraries failed.
|
|
echo This is needed for building, please manually run 'svn cleanup' and 'svn update' in
|
|
echo %BUILD_VS_LIBDIR% , until this is resolved you CANNOT make a successful blender build
|
|
echo.
|
|
exit /b 1
|
|
)
|
|
|
|
cd %BLENDER_DIR% |