diff options
author | Steve Dower <steve.dower@microsoft.com> | 2015-10-23 16:50:49 (GMT) |
---|---|---|
committer | Steve Dower <steve.dower@microsoft.com> | 2015-10-23 16:50:49 (GMT) |
commit | d28a8a994bbd41d4f0fa3f4b69508b06e7e96d06 (patch) | |
tree | 0798846d220f020042e949a559138423b4eea0e4 /Tools/msi/get_externals.bat | |
parent | de6e800f45b292c6290359ddbe9f079de3e08663 (diff) | |
download | cpython-d28a8a994bbd41d4f0fa3f4b69508b06e7e96d06.zip cpython-d28a8a994bbd41d4f0fa3f4b69508b06e7e96d06.tar.gz cpython-d28a8a994bbd41d4f0fa3f4b69508b06e7e96d06.tar.bz2 |
Moves Windows installer externals onto SVN and updates the build process to grab them automatically.
Diffstat (limited to 'Tools/msi/get_externals.bat')
-rw-r--r-- | Tools/msi/get_externals.bat | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Tools/msi/get_externals.bat b/Tools/msi/get_externals.bat new file mode 100644 index 0000000..4ead75e --- /dev/null +++ b/Tools/msi/get_externals.bat @@ -0,0 +1,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
|