File: get_externals.bat

package info (click to toggle)
python3.5 3.5.3-1%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 88,448 kB
  • sloc: python: 491,123; ansic: 410,863; sh: 17,674; asm: 14,322; cpp: 4,123; makefile: 2,255; objc: 761; lisp: 502; exp: 499; pascal: 85; xml: 74; csh: 21
file content (27 lines) | stat: -rw-r--r-- 761 bytes parent folder | download
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