| OLD | NEW |
| 1 @echo off | 1 @echo off |
| 2 :: Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 :: Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 3 :: Use of this source code is governed by a BSD-style license that can be | 3 :: Use of this source code is governed by a BSD-style license that can be |
| 4 :: found in the LICENSE file. | 4 :: found in the LICENSE file. |
| 5 | 5 |
| 6 :: This script will try to find if svn and python are accessible and it not, | 6 :: This script will try to find if svn and python are accessible and it not, |
| 7 :: it will try to download it and 'install' it in depot_tools. | 7 :: it will try to download it and 'install' it in depot_tools. |
| 8 | 8 |
| 9 :: Sadly, we can't use SETLOCAL here otherwise it ERRORLEVEL is not correctly | 9 :: Sadly, we can't use SETLOCAL here otherwise it ERRORLEVEL is not correctly |
| 10 :: returned. | 10 :: returned. |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 :SVN_FAIL | 106 :SVN_FAIL |
| 107 echo ... Failed to checkout svn automatically. | 107 echo ... Failed to checkout svn automatically. |
| 108 echo Please visit http://subversion.tigris.org to download the latest subversion
client | 108 echo Please visit http://subversion.tigris.org to download the latest subversion
client |
| 109 echo before continuing. | 109 echo before continuing. |
| 110 echo You can also get the "prebacked" version used at %WIN_TOOLS_ROOT_URL%/third
_party/ | 110 echo You can also get the "prebacked" version used at %WIN_TOOLS_ROOT_URL%/third
_party/ |
| 111 set ERRORLEVEL=1 | 111 set ERRORLEVEL=1 |
| 112 goto :END | 112 goto :END |
| 113 | 113 |
| 114 | 114 |
| 115 :PYTHON_CHECK | 115 :PYTHON_CHECK |
| 116 if "%DEPOT_TOOLS_PYTHON_275%" == "1" goto :PY275_CHECK | 116 if "%DEPOT_TOOLS_PYTHON_275%" == "0" goto :PY26_CHECK |
| 117 goto :PY26_CHECK | 117 goto :PY275_CHECK |
| 118 | 118 |
| 119 | 119 |
| 120 :PY26_CHECK | 120 :PY26_CHECK |
| 121 if not exist "%WIN_TOOLS_ROOT_DIR%\python_bin" goto :PY26_INSTALL | 121 if not exist "%WIN_TOOLS_ROOT_DIR%\python_bin" goto :PY26_INSTALL |
| 122 if not exist "%WIN_TOOLS_ROOT_DIR%\python.bat" goto :PY26_INSTALL | 122 if not exist "%WIN_TOOLS_ROOT_DIR%\python.bat" goto :PY26_INSTALL |
| 123 set ERRORLEVEL=0 | 123 set ERRORLEVEL=0 |
| 124 goto :END | 124 goto :END |
| 125 | 125 |
| 126 | 126 |
| 127 :PY275_CHECK | 127 :PY275_CHECK |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 goto :END | 170 goto :END |
| 171 | 171 |
| 172 | 172 |
| 173 :returncode | 173 :returncode |
| 174 set WIN_TOOLS_ROOT_URL= | 174 set WIN_TOOLS_ROOT_URL= |
| 175 set WIN_TOOLS_ROOT_DIR= | 175 set WIN_TOOLS_ROOT_DIR= |
| 176 exit /b %ERRORLEVEL% | 176 exit /b %ERRORLEVEL% |
| 177 | 177 |
| 178 :END | 178 :END |
| 179 call :returncode %ERRORLEVEL% | 179 call :returncode %ERRORLEVEL% |
| OLD | NEW |