| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 | 51 |
| 52 | 52 |
| 53 :PYTHON_FAIL | 53 :PYTHON_FAIL |
| 54 echo ... Failed to checkout python automatically. | 54 echo ... Failed to checkout python automatically. |
| 55 echo You should get the "prebaked" version at %WIN_TOOLS_ROOT_URL%/third_party/ | 55 echo You should get the "prebaked" version at %WIN_TOOLS_ROOT_URL%/third_party/ |
| 56 set ERRORLEVEL=1 | 56 set ERRORLEVEL=1 |
| 57 goto :END | 57 goto :END |
| 58 | 58 |
| 59 :GIT_CHECK | 59 :GIT_CHECK |
| 60 if "%DEPOT_TOOLS_GIT_BLEEDING%" == "1" ( | 60 if "%DEPOT_TOOLS_GIT_BLEEDING%" == "1" ( |
| 61 set GIT_VERSION=1.9.5.chromium.5 | 61 set GIT_VERSION=1.9.5.chromium.6 |
| 62 ) else ( | 62 ) else ( |
| 63 set GIT_VERSION=1.9.5.chromium.5 | 63 set GIT_VERSION=1.9.5.chromium.5 |
| 64 ) | 64 ) |
| 65 for /f "tokens=2 delims=[]" %%i in ('ver') do set VERSTR=%%i | 65 for /f "tokens=2 delims=[]" %%i in ('ver') do set VERSTR=%%i |
| 66 for /f "tokens=2,3 delims=. " %%i in ("%VERSTR%") do (set VERMAJOR=%%i & set VER
MINOR=%%j) | 66 for /f "tokens=2,3 delims=. " %%i in ("%VERSTR%") do (set VERMAJOR=%%i & set VER
MINOR=%%j) |
| 67 if %VERMAJOR% lss 5 set GIT_VERSION=%GIT_VERSION%-xp | 67 if %VERMAJOR% lss 5 set GIT_VERSION=%GIT_VERSION%-xp |
| 68 if %VERMAJOR% equ 5 if %VERMINOR% lss 2 set GIT_VERSION=%GIT_VERSION%-xp | 68 if %VERMAJOR% equ 5 if %VERMINOR% lss 2 set GIT_VERSION=%GIT_VERSION%-xp |
| 69 | 69 |
| 70 :: Clean up any release which doesn't match the one we want. | 70 :: Clean up any release which doesn't match the one we want. |
| 71 for /d %%i in (%WIN_TOOLS_ROOT_DIR%\git-*_bin) do ( | 71 for /d %%i in (%WIN_TOOLS_ROOT_DIR%\git-*_bin) do ( |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 goto :END | 164 goto :END |
| 165 | 165 |
| 166 | 166 |
| 167 :returncode | 167 :returncode |
| 168 set WIN_TOOLS_ROOT_URL= | 168 set WIN_TOOLS_ROOT_URL= |
| 169 set WIN_TOOLS_ROOT_DIR= | 169 set WIN_TOOLS_ROOT_DIR= |
| 170 exit /b %ERRORLEVEL% | 170 exit /b %ERRORLEVEL% |
| 171 | 171 |
| 172 :END | 172 :END |
| 173 call :returncode %ERRORLEVEL% | 173 call :returncode %ERRORLEVEL% |
| OLD | NEW |