| 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 12 matching lines...) Expand all Loading... |
| 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. | 33 IF "%DEPOT_TOOLS_WIN_TOOLCHAIN%" == "0" GOTO :NOTOOLCHAIN |
| 34 IF "%DEPOT_TOOLS_WIN_TOOLCHAIN%" == "" GOTO :NOTOOLCHAIN | |
| 35 call python %~dp0win_toolchain\get_toolchain_if_necessary.py | 34 call python %~dp0win_toolchain\get_toolchain_if_necessary.py |
| 36 if errorlevel 1 goto :EOF | 35 if errorlevel 1 goto :EOF |
| 37 set errorlevel= | 36 set errorlevel= |
| 38 :NOTOOLCHAIN | 37 :NOTOOLCHAIN |
| 39 | 38 |
| 40 :: Shall skip automatic update? | 39 :: Shall skip automatic update? |
| 41 IF "%DEPOT_TOOLS_UPDATE%" == "0" GOTO :EOF | 40 IF "%DEPOT_TOOLS_UPDATE%" == "0" GOTO :EOF |
| 42 | 41 |
| 43 :: We need either .\.svn\. or .\.git\. to be able to sync. | 42 :: We need either .\.svn\. or .\.git\. to be able to sync. |
| 44 IF EXIST "%DEPOT_TOOLS_DIR%.svn\." GOTO :SVN_UPDATE | 43 IF EXIST "%DEPOT_TOOLS_DIR%.svn\." GOTO :SVN_UPDATE |
| (...skipping 23 matching lines...) Expand all Loading... |
| 68 call git fetch -q origin > NUL | 67 call git fetch -q origin > NUL |
| 69 call git rebase -q origin/master > NUL | 68 call git rebase -q origin/master > NUL |
| 70 if errorlevel 1 echo Failed to update depot_tools. | 69 if errorlevel 1 echo Failed to update depot_tools. |
| 71 | 70 |
| 72 goto :EOF | 71 goto :EOF |
| 73 | 72 |
| 74 :GIT_SVN_UPDATE | 73 :GIT_SVN_UPDATE |
| 75 cd /d "%DEPOT_TOOLS_DIR%." | 74 cd /d "%DEPOT_TOOLS_DIR%." |
| 76 call git svn rebase -q -q | 75 call git svn rebase -q -q |
| 77 goto :EOF | 76 goto :EOF |
| OLD | NEW |