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. |
11 | 11 |
12 set WIN_TOOLS_ROOT_URL=https://src.chromium.org/svn/trunk/tools | 12 set WIN_TOOLS_ROOT_URL=https://src.chromium.org/svn/trunk/tools |
13 :: It used to be %~dp0 but ADODB.Stream may fail to write to this directory if | 13 :: It used to be %~dp0 but ADODB.Stream may fail to write to this directory if |
14 :: the directory DACL is set to elevated integrity level. | 14 :: the directory DACL is set to elevated integrity level. |
15 set ZIP_DIR=%TEMP% | 15 set ZIP_DIR=%TEMP% |
16 | 16 |
17 :: Get absolute root directory (.js scripts don't handle relative paths well). | 17 :: Get absolute root directory (.js scripts don't handle relative paths well). |
18 pushd %~dp0..\.. | 18 pushd %~dp0..\.. |
19 set WIN_TOOLS_ROOT_DIR=%CD% | 19 set WIN_TOOLS_ROOT_DIR=%CD% |
20 popd | 20 popd |
21 | 21 |
22 if "%1" == "force" ( | 22 if "%1" == "force" ( |
23 set WIN_TOOLS_FORCE=1 | 23 set WIN_TOOLS_FORCE=1 |
24 shift /1 | 24 shift /1 |
25 ) | 25 ) |
26 | 26 |
27 | 27 |
28 :GIT_CHECK | 28 :GIT_CHECK |
29 if "%DEPOT_TOOLS_GIT_1852%" == "1" goto :GIT_1852_CHECK | 29 if "%DEPOT_TOOLS_GIT_1852%" == "0" goto :GIT_180_CHECK |
30 goto :GIT_180_CHECK | 30 goto :GIT_1852_CHECK |
31 | 31 |
32 | 32 |
33 :GIT_1852_CHECK | 33 :GIT_1852_CHECK |
34 set GIT_VERSION=1.8.5.2.chromium.1 | 34 set GIT_VERSION=1.8.5.2.chromium.1 |
35 set GIT_BIN_DIR=git-%GIT_VERSION%_bin | 35 set GIT_BIN_DIR=git-%GIT_VERSION%_bin |
36 set GIT_ZIP_FILE=%GIT_BIN_DIR%.zip | 36 set GIT_ZIP_FILE=%GIT_BIN_DIR%.zip |
37 set GIT_ZIP_URL=https://commondatastorage.googleapis.com/chrome-infra/%GIT_ZIP_F
ILE% | 37 set GIT_ZIP_URL=https://commondatastorage.googleapis.com/chrome-infra/%GIT_ZIP_F
ILE% |
38 goto :GIT_COMMON | 38 goto :GIT_COMMON |
39 | 39 |
40 | 40 |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 goto :END | 197 goto :END |
198 | 198 |
199 | 199 |
200 :returncode | 200 :returncode |
201 set WIN_TOOLS_ROOT_URL= | 201 set WIN_TOOLS_ROOT_URL= |
202 set WIN_TOOLS_ROOT_DIR= | 202 set WIN_TOOLS_ROOT_DIR= |
203 exit /b %ERRORLEVEL% | 203 exit /b %ERRORLEVEL% |
204 | 204 |
205 :END | 205 :END |
206 call :returncode %ERRORLEVEL% | 206 call :returncode %ERRORLEVEL% |
OLD | NEW |