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 16 matching lines...) Expand all Loading... |
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%" == "1" goto :GIT_1852_CHECK |
30 goto :GIT_180_CHECK | 30 goto :GIT_180_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=http://commondatastorage.googleapis.com/chrome-infra/%GIT_ZIP_FI
LE% | 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 |
41 :GIT_180_CHECK | 41 :GIT_180_CHECK |
42 set GIT_VERSION=1.8.0 | 42 set GIT_VERSION=1.8.0 |
43 set GIT_BIN_DIR=git-%GIT_VERSION%_bin | 43 set GIT_BIN_DIR=git-%GIT_VERSION%_bin |
44 set GIT_ZIP_FILE=%GIT_BIN_DIR%.zip | 44 set GIT_ZIP_FILE=%GIT_BIN_DIR%.zip |
45 set GIT_ZIP_URL=%WIN_TOOLS_ROOT_URL%/third_party/%GIT_ZIP_FILE% | 45 set GIT_ZIP_URL=%WIN_TOOLS_ROOT_URL%/third_party/%GIT_ZIP_FILE% |
46 goto :GIT_COMMON | 46 goto :GIT_COMMON |
47 | 47 |
(...skipping 149 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 |