Zachary Ware | 6b6e687 | 2017-06-10 14:58:42 -0500 | [diff] [blame^] | 1 | @echo off |
| 2 | setlocal |
| 3 | rem Simple script to fetch source for external tools |
| 4 | |
| 5 | where /Q svn |
| 6 | if ERRORLEVEL 1 ( |
| 7 | echo.svn.exe must be on your PATH to get external tools. |
| 8 | echo.Try TortoiseSVN (http://tortoisesvn.net/^) and be sure to check the |
| 9 | echo.command line tools option. |
| 10 | popd |
| 11 | exit /b 1 |
| 12 | ) |
| 13 | |
| 14 | if not exist "%~dp0..\..\externals" mkdir "%~dp0..\..\externals" |
| 15 | pushd "%~dp0..\..\externals" |
| 16 | |
| 17 | if "%SVNROOT%"=="" set SVNROOT=http://svn.python.org/projects/external/ |
| 18 | |
| 19 | if not exist "windows-installer\.svn" ( |
| 20 | echo.Checking out installer dependencies to %CD%\windows-installer |
| 21 | svn co %SVNROOT%windows-installer |
| 22 | ) else ( |
| 23 | echo.Updating installer dependencies in %CD%\windows-installer |
| 24 | svn up windows-installer |
| 25 | ) |
| 26 | |
| 27 | popd |