Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: bootstrap/win/win_tools.bat

Issue 887563004: Set default Windows git to 1.9.5-chromium.6 build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
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.6 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.6
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 (
72 if not %%i == %WIN_TOOLS_ROOT_DIR%\git-%GIT_VERSION%_bin ( 72 if not %%i == %WIN_TOOLS_ROOT_DIR%\git-%GIT_VERSION%_bin (
73 rmdir /s /q "%%i" 73 rmdir /s /q "%%i"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
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%
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698