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