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

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: 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
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 IF "%DEPOT_TOOLS_WIN_TOOLCHAIN%" == "0" GOTO :NOTOOLCHAIN
34 call python %~dp0win_toolchain\get_toolchain_if_necessary.py
35 if errorlevel 1 goto :EOF
36 set errorlevel=
37 :NOTOOLCHAIN
38
39 :: Shall skip automatic update? 33 :: Shall skip automatic update?
40 IF "%DEPOT_TOOLS_UPDATE%" == "0" GOTO :EOF 34 IF "%DEPOT_TOOLS_UPDATE%" == "0" GOTO :EOF
41 35
42 :: We need either .\.svn\. or .\.git\. to be able to sync. 36 :: We need either .\.svn\. or .\.git\. to be able to sync.
43 IF EXIST "%DEPOT_TOOLS_DIR%.svn\." GOTO :SVN_UPDATE 37 IF EXIST "%DEPOT_TOOLS_DIR%.svn\." GOTO :SVN_UPDATE
44 IF EXIST "%DEPOT_TOOLS_DIR%.git\." GOTO :GIT_UPDATE 38 IF EXIST "%DEPOT_TOOLS_DIR%.git\." GOTO :GIT_UPDATE
45 echo Error updating depot_tools, no revision tool found. 39 echo Error updating depot_tools, no revision tool found.
46 goto :EOF 40 goto :EOF
47 41
48 42
(...skipping 18 matching lines...) Expand all
67 call git fetch -q origin > NUL 61 call git fetch -q origin > NUL
68 call git rebase -q origin/master > NUL 62 call git rebase -q origin/master > NUL
69 if errorlevel 1 echo Failed to update depot_tools. 63 if errorlevel 1 echo Failed to update depot_tools.
70 64
71 goto :EOF 65 goto :EOF
72 66
73 :GIT_SVN_UPDATE 67 :GIT_SVN_UPDATE
74 cd /d "%DEPOT_TOOLS_DIR%." 68 cd /d "%DEPOT_TOOLS_DIR%."
75 call git svn rebase -q -q 69 call git svn rebase -q -q
76 goto :EOF 70 goto :EOF
OLDNEW
« no previous file with comments | « no previous file | win_toolchain/get_toolchain_if_necessary.py » ('j') | win_toolchain/get_toolchain_if_necessary.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698