| OLD | NEW | 
|---|
| 1 @echo off | 1 @echo off | 
| 2 :: Copyright (c) 2009 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 file is a stub to sync .\bootstrap first and defer control to | 6 :: Synchronize the root directory before deferring control back to gclient.py. | 
| 7 :: .\bootstrap\gclient.bat, which will sync back '.'. This is unless auto | 7 call "%~dp0\update_depot_tools.bat" | 
| 8 :: update is disabled, were gclient.py is directly called. |  | 
| 9 setlocal |  | 
| 10 | 8 | 
| 11 :: This is required with cygwin only. | 9 :: Defer control. | 
| 12 PATH=%~dp0;%PATH% |  | 
| 13 |  | 
| 14 :: Will download svn and python. |  | 
| 15 :: If you don't want to install the depot_tools version of these tools, remove |  | 
| 16 :: the 'force' option on the next command. The tools won't be installed only if |  | 
| 17 :: not already in the PATH environment variable. |  | 
| 18 call "%~dp0bootstrap\win\win_tools.bat" force |  | 
| 19 if errorlevel 1 goto :EOF |  | 
| 20 |  | 
| 21 :: Shall skip automatic update? |  | 
| 22 IF "%DEPOT_TOOLS_UPDATE%" == "0" GOTO :SKIP_UPDATE |  | 
| 23 :: We can't sync if .\.svn\. doesn't exist. |  | 
| 24 IF NOT EXIST "%~dp0.svn\." GOTO :SKIP_UPDATE |  | 
| 25 |  | 
| 26 :: Sync the bootstrap directory. |  | 
| 27 call svn up -q "%~dp0bootstrap" |  | 
| 28 :: still continue even in case of error. |  | 
| 29 goto :UPDATE |  | 
| 30 |  | 
| 31 |  | 
| 32 :SKIP_UPDATE |  | 
| 33 :: Don't bother to try to update any thing. |  | 
| 34 python "%~dp0\gclient.py" %* | 10 python "%~dp0\gclient.py" %* | 
| 35 goto :EOF |  | 
| 36 |  | 
| 37 |  | 
| 38 :UPDATE |  | 
| 39 :: Transfer control to ease the update process. The following lines won't be |  | 
| 40 :: executed so don't add any! Specifically, don't use 'call' in the following |  | 
| 41 :: line. |  | 
| 42 "%~dp0bootstrap\gclient.bat" %* |  | 
| 43 goto :EOF |  | 
| OLD | NEW | 
|---|