| OLD | NEW |
| 1 @echo off | 1 @echo off |
| 2 :: Copyright (c) 2009 The Chromium Authors. All rights reserved. | 2 :: Copyright (c) 2009 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. |
| 11 | 11 |
| 12 set WIN_TOOLS_ROOT_URL=http://src.chromium.org/svn/trunk/tools | 12 set WIN_TOOLS_ROOT_URL=http://src.chromium.org/svn/trunk/tools |
| 13 set WIN_TOOLS_ROOT_DIR=%~dp0..\.. | 13 |
| 14 :: Get absolute root directory (.js scripts don't handle relative paths well). |
| 15 pushd %~dp0..\.. |
| 16 set WIN_TOOLS_ROOT_DIR=%CD% |
| 17 popd |
| 14 | 18 |
| 15 if "%1" == "force" ( | 19 if "%1" == "force" ( |
| 16 set WIN_TOOLS_FORCE=1 | 20 set WIN_TOOLS_FORCE=1 |
| 17 shift /1 | 21 shift /1 |
| 18 ) | 22 ) |
| 19 | 23 |
| 20 :SVN_CHECK | 24 :SVN_CHECK |
| 21 :: If the batch file exists, skip the svn check. | 25 :: If the batch file exists, skip the svn check. |
| 22 if exist "%WIN_TOOLS_ROOT_DIR%\svn.bat" goto :PYTHON_CHECK | 26 if exist "%WIN_TOOLS_ROOT_DIR%\svn.bat" goto :PYTHON_CHECK |
| 23 if "%WIN_TOOLS_FORCE%" == "1" goto :SVN_INSTALL | 27 if "%WIN_TOOLS_FORCE%" == "1" goto :SVN_INSTALL |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 goto :END | 90 goto :END |
| 87 | 91 |
| 88 | 92 |
| 89 :returncode | 93 :returncode |
| 90 set WIN_TOOLS_ROOT_URL= | 94 set WIN_TOOLS_ROOT_URL= |
| 91 set WIN_TOOLS_ROOT_DIR= | 95 set WIN_TOOLS_ROOT_DIR= |
| 92 exit /b %ERRORLEVEL% | 96 exit /b %ERRORLEVEL% |
| 93 | 97 |
| 94 :END | 98 :END |
| 95 call :returncode %ERRORLEVEL% | 99 call :returncode %ERRORLEVEL% |
| OLD | NEW |