summaryrefslogtreecommitdiffstats
path: root/Tools/msi/get_externals.bat
blob: 4ead75e757233eb179229061122670af3b0e79bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
@echo off
setlocal
rem Simple script to fetch source for external tools


where /Q svn
if ERRORLEVEL 1 (
    echo.svn.exe must be on your PATH to get external tools.
    echo.Try TortoiseSVN (http://tortoisesvn.net/^) and be sure to check the
    echo.command line tools option.
    popd
    exit /b 1
)

if not exist "%~dp0..\..\externals" mkdir "%~dp0..\..\externals"
pushd "%~dp0..\..\externals"



if "%SVNROOT%"=="" set SVNROOT=http://svn.python.org/projects/external/

if not exist "windows-installer\.svn" (
    echo.Checking out installer dependencies to %CD%\windows-installer
    svn co %SVNROOT%windows-installer
) else (
    echo.Updating installer dependencies in %CD%\windows-installer
    svn up windows-installer
)

popd