OLD | NEW |
(Empty) | |
| 1 @echo off |
| 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 |
| 4 :: found in the LICENSE file. |
| 5 |
| 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 |
| 8 :: update is disabled, were gclient.py is directly called. |
| 9 |
| 10 :: Shall skip automatic update? |
| 11 IF "%DEPOT_TOOLS_UPDATE%" == "0" GOTO :SKIP_UPDATE |
| 12 :: We can't sync if .\.svn\. doesn't exist. |
| 13 IF NOT EXIST "%~dp0.svn" GOTO :SKIP_UPDATE |
| 14 |
| 15 :: Will download svn and python if not already installed on the system. |
| 16 call "%~dp0bootstrap\win\win_tools.bat" |
| 17 if errorlevel 1 goto :EOF |
| 18 |
| 19 :: Sync the bootstrap directory *only after*. |
| 20 call svn up -q "%~dp0bootstrap" |
| 21 :: still continue even in case of error. |
| 22 goto :UPDATE |
| 23 |
| 24 |
| 25 :SKIP_UPDATE |
| 26 :: Don't bother to try to update any thing. |
| 27 python "%~dp0\gclient.py" %* |
| 28 goto :EOF |
| 29 |
| 30 |
| 31 :UPDATE |
| 32 :: Transfer control to ease the update process. The following lines won't be |
| 33 :: executed so don't add any! Specifically, don't use 'call' in the following |
| 34 :: line. |
| 35 "%~dp0bootstrap\gclient.bat" %* |
| 36 goto :EOF |
OLD | NEW |