Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(320)

Side by Side Diff: gclient.bat

Issue 93106: Fix the windows auto update scripts. (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/tools/depot_tools/
Patch Set: Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « bootstrap/win/win_tools.bat ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 9
10 :: Shall skip automatic update? 10 :: Shall skip automatic update?
11 IF "%DEPOT_TOOLS_UPDATE%" == "0" GOTO :SKIP_UPDATE 11 IF "%DEPOT_TOOLS_UPDATE%" == "0" GOTO :SKIP_UPDATE
12 :: We can't sync if .\.svn\. doesn't exist. 12 :: We can't sync if .\.svn\. doesn't exist.
13 IF NOT EXIST "%~dp0.svn" GOTO :SKIP_UPDATE 13 IF NOT EXIST "%~dp0.svn\." GOTO :SKIP_UPDATE
14 14
15 :: Will download svn and python if not already installed on the system. 15 :: Will download svn and python if not already installed on the system.
16 call "%~dp0bootstrap\win\win_tools.bat" 16 call "%~dp0bootstrap\win\win_tools.bat"
17 if errorlevel 1 goto :EOF 17 if errorlevel 1 goto :EOF
18 18
19 :: Sync the bootstrap directory *only after*. 19 :: Sync the bootstrap directory *only after*.
20 call svn up -q "%~dp0bootstrap" 20 call svn up -q "%~dp0bootstrap"
21 :: still continue even in case of error. 21 :: still continue even in case of error.
22 goto :UPDATE 22 goto :UPDATE
23 23
24 24
25 :SKIP_UPDATE 25 :SKIP_UPDATE
26 :: Don't bother to try to update any thing. 26 :: Don't bother to try to update any thing.
27 python "%~dp0\gclient.py" %* 27 python "%~dp0\gclient.py" %*
28 goto :EOF 28 goto :EOF
29 29
30 30
31 :UPDATE 31 :UPDATE
32 :: Transfer control to ease the update process. The following lines won't be 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 33 :: executed so don't add any! Specifically, don't use 'call' in the following
34 :: line. 34 :: line.
35 "%~dp0bootstrap\gclient.bat" %* 35 "%~dp0bootstrap\gclient.bat" %*
36 goto :EOF 36 goto :EOF
OLDNEW
« no previous file with comments | « bootstrap/win/win_tools.bat ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698