@rem Common file shared between external.bat and external-amd64.bat.  Responsible for
@rem fetching external components into the root\.. buildbot directories.

cd ..
@rem XXX: If you need to force the buildbots to start from a fresh environment, uncomment
@rem the following, check it in, then check it out, comment it out, then check it back in.
@rem if exist bzip2-1.0.6 rd /s/q bzip2-1.0.6
@rem if exist tcltk rd /s/q tcltk
@rem if exist tcltk64 rd /s/q tcltk64
@rem if exist tcl8.4.12 rd /s/q tcl8.4.12
@rem if exist tcl8.4.16 rd /s/q tcl8.4.16
@rem if exist tcl-8.4.18.1 rd /s/q tcl-8.4.18.1
@rem if exist tk8.4.12 rd /s/q tk8.4.12
@rem if exist tk8.4.16 rd /s/q tk8.4.16
@rem if exist tk-8.4.18.1 rd /s/q tk-8.4.18.1
@rem if exist db-4.4.20 rd /s/q db-4.4.20
@rem if exist openssl-1.0.1e rd /s/q openssl-1.0.1e
@rem if exist sqlite-3.7.12 rd /s/q sqlite-3.7.12    

@rem bzip
if not exist bzip2-1.0.6 (
   rd /s/q bzip2-1.0.5
  svn export http://svn.python.org/projects/external/bzip2-1.0.6
)

@rem OpenSSL
if not exist openssl-1.0.1e (
    rd /s/q openssl-1.0.1d
    svn export http://svn.python.org/projects/external/openssl-1.0.1e
)

@rem tcl/tk
if not exist tcl-8.6.1.0 (
   rd /s/q tcltk tcltk64 tcl-8.5.11.0 tk-8.5.11.0
   svn export http://svn.python.org/projects/external/tcl-8.6.1.0
)
if not exist tk-8.6.1.0 svn export http://svn.python.org/projects/external/tk-8.6.1.0

@rem sqlite3
if not exist sqlite-3.8.1 (
  rd /s/q sqlite-source-3.7.12
  svn export http://svn.python.org/projects/external/sqlite-3.8.1
)

@rem lzma
if not exist xz-5.0.5 (
  rd /s/q xz-5.0.3
  svn export http://svn.python.org/projects/external/xz-5.0.5
)
