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 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 11 matching lines...) Expand all Loading... | |
22 set GIT_URL=https://chromium.googlesource.com/chromium/tools/depot_tools.git | 22 set GIT_URL=https://chromium.googlesource.com/chromium/tools/depot_tools.git |
23 | 23 |
24 :: Will download git, svn and python. | 24 :: Will download git, svn and python. |
25 call "%DEPOT_TOOLS_DIR%bootstrap\win\win_tools.bat" | 25 call "%DEPOT_TOOLS_DIR%bootstrap\win\win_tools.bat" |
26 if errorlevel 1 goto :EOF | 26 if errorlevel 1 goto :EOF |
27 :: Now clear errorlevel so it can be set by other programs later. | 27 :: Now clear errorlevel so it can be set by other programs later. |
28 set errorlevel= | 28 set errorlevel= |
29 | 29 |
30 :: Initialize/update virtualenv. | 30 :: Initialize/update virtualenv. |
31 cd /d "%DEPOT_TOOLS_DIR%." | 31 cd /d "%DEPOT_TOOLS_DIR%." |
32 python -u bootstrap\bootstrap.py --deps_file bootstrap\deps.pyl --quiet ENV | 32 call python.bat -u bootstrap\bootstrap.py --deps_file bootstrap\deps.pyl ENV |
Sergiy Byelozyorov
2015/07/20 08:57:18
Please re-add --quiet. Otherwise, this will break
Daniel Bratell
2015/07/20 09:04:20
Done.
| |
33 if errorlevel 1 goto :EOF | 33 if errorlevel 1 goto :EOF |
34 | 34 |
35 :: Shall skip automatic update? | 35 :: Shall skip automatic update? |
36 IF "%DEPOT_TOOLS_UPDATE%" == "0" GOTO :EOF | 36 IF "%DEPOT_TOOLS_UPDATE%" == "0" GOTO :EOF |
37 | 37 |
38 :: We need either .\.svn\. or .\.git\. to be able to sync. | 38 :: We need either .\.svn\. or .\.git\. to be able to sync. |
39 IF EXIST "%DEPOT_TOOLS_DIR%.svn\." GOTO :SVN_UPDATE | 39 IF EXIST "%DEPOT_TOOLS_DIR%.svn\." GOTO :SVN_UPDATE |
40 IF EXIST "%DEPOT_TOOLS_DIR%.git\." GOTO :GIT_UPDATE | 40 IF EXIST "%DEPOT_TOOLS_DIR%.git\." GOTO :GIT_UPDATE |
41 echo Error updating depot_tools, no revision tool found. | 41 echo Error updating depot_tools, no revision tool found. |
42 goto :EOF | 42 goto :EOF |
(...skipping 25 matching lines...) Expand all Loading... | |
68 call git fetch -q origin > NUL | 68 call git fetch -q origin > NUL |
69 call git rebase -q origin/master > NUL | 69 call git rebase -q origin/master > NUL |
70 if errorlevel 1 echo Failed to update depot_tools. | 70 if errorlevel 1 echo Failed to update depot_tools. |
71 goto :EOF | 71 goto :EOF |
72 | 72 |
73 | 73 |
74 :GIT_SVN_UPDATE | 74 :GIT_SVN_UPDATE |
75 cd /d "%DEPOT_TOOLS_DIR%." | 75 cd /d "%DEPOT_TOOLS_DIR%." |
76 call git svn rebase -q -q | 76 call git svn rebase -q -q |
77 goto :EOF | 77 goto :EOF |
OLD | NEW |