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

Side by Side Diff: update_depot_tools.bat

Issue 168603004: Move toolchain update control into src, but keep download logic in depot_tools (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: reitveld Created 6 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 | win_toolchain/get_toolchain_if_necessary.py » ('j') | 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 batch file will try to sync the root directory. 6 :: This batch file will try to sync the root directory.
7 7
8 setlocal 8 setlocal
9 9
10 :: Windows freaks out if a file is overwritten while it's being executed. Copy 10 :: Windows freaks out if a file is overwritten while it's being executed. Copy
(...skipping 12 matching lines...) Expand all
23 23
24 :: Will download svn and python. 24 :: Will download svn and python.
25 :: If you don't want to install the depot_tools version of these tools, remove 25 :: If you don't want to install the depot_tools version of these tools, remove
26 :: the 'force' option on the next command. The tools will be installed only if 26 :: the 'force' option on the next command. The tools will be installed only if
27 :: not already in the PATH environment variable. 27 :: not already in the PATH environment variable.
28 call "%DEPOT_TOOLS_DIR%bootstrap\win\win_tools.bat" force 28 call "%DEPOT_TOOLS_DIR%bootstrap\win\win_tools.bat" force
29 if errorlevel 1 goto :EOF 29 if errorlevel 1 goto :EOF
30 :: Now clear errorlevel so it can be set by other programs later. 30 :: Now clear errorlevel so it can be set by other programs later.
31 set errorlevel= 31 set errorlevel=
32 32
33 :: Opt-in for now.
34 IF "%DEPOT_TOOLS_WIN_TOOLCHAIN%" == "" GOTO :NOTOOLCHAIN
35 call python %~dp0win_toolchain\get_toolchain_if_necessary.py
36 if errorlevel 1 goto :EOF
37 set errorlevel=
38 :NOTOOLCHAIN
39
40 :: Shall skip automatic update? 33 :: Shall skip automatic update?
41 IF "%DEPOT_TOOLS_UPDATE%" == "0" GOTO :EOF 34 IF "%DEPOT_TOOLS_UPDATE%" == "0" GOTO :EOF
42 35
43 :: We need either .\.svn\. or .\.git\. to be able to sync. 36 :: We need either .\.svn\. or .\.git\. to be able to sync.
44 IF EXIST "%DEPOT_TOOLS_DIR%.svn\." GOTO :SVN_UPDATE 37 IF EXIST "%DEPOT_TOOLS_DIR%.svn\." GOTO :SVN_UPDATE
45 IF EXIST "%DEPOT_TOOLS_DIR%.git\." GOTO :GIT_UPDATE 38 IF EXIST "%DEPOT_TOOLS_DIR%.git\." GOTO :GIT_UPDATE
46 echo Error updating depot_tools, no revision tool found. 39 echo Error updating depot_tools, no revision tool found.
47 goto :EOF 40 goto :EOF
48 41
49 42
(...skipping 17 matching lines...) Expand all
67 ) 60 )
68 call git fetch -q origin > NUL 61 call git fetch -q origin > NUL
69 call git rebase -q origin/master > NUL 62 call git rebase -q origin/master > NUL
70 if errorlevel 1 echo Failed to update depot_tools. 63 if errorlevel 1 echo Failed to update depot_tools.
71 64
72 goto :EOF 65 goto :EOF
73 66
74 :GIT_SVN_UPDATE 67 :GIT_SVN_UPDATE
75 cd /d "%DEPOT_TOOLS_DIR%." 68 cd /d "%DEPOT_TOOLS_DIR%."
76 call git svn rebase -q -q 69 call git svn rebase -q -q
77 goto :EOF 70 goto :EOF
OLDNEW
« no previous file with comments | « no previous file | win_toolchain/get_toolchain_if_necessary.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698