OLD | NEW |
1 @echo off | 1 @echo off |
2 :: Copyright (c) 2009 The Chromium Authors. All rights reserved. | 2 :: Copyright (c) 2009 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 :: This file is a stub to sync .\bootstrap first and defer control to |
7 :: .\bootstrap\gclient.bat, which will sync back '.'. This is unless auto | 7 :: .\bootstrap\gclient.bat, which will sync back '.'. This is unless auto |
8 :: update is disabled, were gclient.py is directly called. | 8 :: update is disabled, were gclient.py is directly called. |
| 9 setlocal |
| 10 |
| 11 :: This is required with cygwin only. |
| 12 PATH=%~dp0;%PATH% |
9 | 13 |
10 :: Shall skip automatic update? | 14 :: Shall skip automatic update? |
11 IF "%DEPOT_TOOLS_UPDATE%" == "0" GOTO :SKIP_UPDATE | 15 IF "%DEPOT_TOOLS_UPDATE%" == "0" GOTO :SKIP_UPDATE |
12 :: We can't sync if .\.svn\. doesn't exist. | 16 :: We can't sync if .\.svn\. doesn't exist. |
13 IF NOT EXIST "%~dp0.svn\." GOTO :SKIP_UPDATE | 17 IF NOT EXIST "%~dp0.svn\." GOTO :SKIP_UPDATE |
14 | 18 |
15 :: Will download svn and python. | 19 :: Will download svn and python. |
16 :: If you don't want to install the depot_tools version of these tools, remove | 20 :: If you don't want to install the depot_tools version of these tools, remove |
17 :: the 'force' option on the next command. The tools won't be installed only if | 21 :: the 'force' option on the next command. The tools won't be installed only if |
18 :: not already in the PATH environment variable. | 22 :: not already in the PATH environment variable. |
(...skipping 11 matching lines...) Expand all Loading... |
30 python "%~dp0\gclient.py" %* | 34 python "%~dp0\gclient.py" %* |
31 goto :EOF | 35 goto :EOF |
32 | 36 |
33 | 37 |
34 :UPDATE | 38 :UPDATE |
35 :: Transfer control to ease the update process. The following lines won't be | 39 :: Transfer control to ease the update process. The following lines won't be |
36 :: executed so don't add any! Specifically, don't use 'call' in the following | 40 :: executed so don't add any! Specifically, don't use 'call' in the following |
37 :: line. | 41 :: line. |
38 "%~dp0bootstrap\gclient.bat" %* | 42 "%~dp0bootstrap\gclient.bat" %* |
39 goto :EOF | 43 goto :EOF |
OLD | NEW |