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

Side by Side Diff: gclient.bat

Issue 113208: Force depot_tools to be in the PATH before /usr/bin in cygwin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools/
Patch Set: Created 11 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698