Skip to content

Commit 1a94b2b

Browse files
committed
Closes python#23160: Respect the environment variable SVNROOT in external-common.bat (patch by anselm.kruis)
1 parent 7ff0360 commit 1a94b2b

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

Tools/buildbot/external-common.bat

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
@rem Common file shared between external.bat and external-amd64.bat. Responsible for
22
@rem fetching external components into the root\externals directory.
33

4+
if "%SVNROOT%"=="" set SVNROOT=http://svn.python.org/projects/external/
5+
46
if not exist externals mkdir externals
57
cd externals
68
@rem XXX: If you need to force the buildbots to start from a fresh environment, uncomment
@@ -31,31 +33,31 @@ cd externals
3133
@rem bzip
3234
if not exist bzip2-1.0.6 (
3335
rd /s/q bzip2-1.0.5
34-
svn export http://svn.python.org/projects/external/bzip2-1.0.6
36+
svn export %SVNROOT%bzip2-1.0.6
3537
)
3638

3739
@rem Berkeley DB
3840
if exist db-4.4.20 rd /s/q db-4.4.20
39-
if not exist db-4.7.25.0 svn export http://svn.python.org/projects/external/db-4.7.25.0
41+
if not exist db-4.7.25.0 svn export %SVNROOT%db-4.7.25.0
4042

4143
@rem NASM, for OpenSSL build
4244
@rem if exist nasm-2.11.06 rd /s/q nasm-2.11.06
43-
if not exist nasm-2.11.06 svn export http://svn.python.org/projects/external/nasm-2.11.06
45+
if not exist nasm-2.11.06 svn export %SVNROOT%nasm-2.11.06
4446

4547
@rem OpenSSL
4648
if exist openssl-1.0.1i rd /s/q openssl-1.0.1i
47-
if not exist openssl-1.0.1j svn export http://svn.python.org/projects/external/openssl-1.0.1j
49+
if not exist openssl-1.0.1j svn export %SVNROOT%openssl-1.0.1j
4850

4951
@rem tcl/tk
5052
if not exist tcl-8.5.15.0 (
5153
rd /s/q tcltk tcltk64 tcl-8.5.2.1 tk-8.5.2.0
52-
svn export http://svn.python.org/projects/external/tcl-8.5.15.0
54+
svn export %SVNROOT%tcl-8.5.15.0
5355
)
54-
if not exist tk-8.5.15.0 svn export http://svn.python.org/projects/external/tk-8.5.15.0
55-
if not exist tix-8.4.3.5 svn export http://svn.python.org/projects/external/tix-8.4.3.5
56+
if not exist tk-8.5.15.0 svn export %SVNROOT%tk-8.5.15.0
57+
if not exist tix-8.4.3.5 svn export %SVNROOT%tix-8.4.3.5
5658

5759
@rem sqlite3
5860
if not exist sqlite-3.6.21 (
5961
rd /s/q sqlite-source-3.3.4
60-
svn export http://svn.python.org/projects/external/sqlite-3.6.21
62+
svn export %SVNROOT%sqlite-3.6.21
6163
)

0 commit comments

Comments
 (0)