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

Side by Side Diff: depot_tools/bootstrap/win/win_tools.bat

Issue 115184: Fix a problem with gclient not being able to download tools such as svn.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/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 script will try to find if svn and python are accessible and it not, 6 :: This script will try to find if svn and python are accessible and it not,
7 :: it will try to download it and 'install' it in depot_tools. 7 :: it will try to download it and 'install' it in depot_tools.
8 8
9 :: Sadly, we can't use SETLOCAL here otherwise it ERRORLEVEL is not correctly 9 :: Sadly, we can't use SETLOCAL here otherwise it ERRORLEVEL is not correctly
10 :: returned. 10 :: returned.
11 11
12 set WIN_TOOLS_ROOT_URL=http://src.chromium.org/svn/trunk/tools 12 set WIN_TOOLS_ROOT_URL=http://src.chromium.org/svn/trunk/tools
13 set WIN_TOOLS_ROOT_DIR=%~dp0..\.. 13
14 :: Get absolute root directory (.js scripts don't handle relative paths well).
15 pushd %~dp0..\..
16 set WIN_TOOLS_ROOT_DIR=%CD%
17 popd
14 18
15 if "%1" == "force" ( 19 if "%1" == "force" (
16 set WIN_TOOLS_FORCE=1 20 set WIN_TOOLS_FORCE=1
17 shift /1 21 shift /1
18 ) 22 )
19 23
20 :SVN_CHECK 24 :SVN_CHECK
21 :: If the batch file exists, skip the svn check. 25 :: If the batch file exists, skip the svn check.
22 if exist "%WIN_TOOLS_ROOT_DIR%\svn.bat" goto :PYTHON_CHECK 26 if exist "%WIN_TOOLS_ROOT_DIR%\svn.bat" goto :PYTHON_CHECK
23 if "%WIN_TOOLS_FORCE%" == "1" goto :SVN_INSTALL 27 if "%WIN_TOOLS_FORCE%" == "1" goto :SVN_INSTALL
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 goto :END 90 goto :END
87 91
88 92
89 :returncode 93 :returncode
90 set WIN_TOOLS_ROOT_URL= 94 set WIN_TOOLS_ROOT_URL=
91 set WIN_TOOLS_ROOT_DIR= 95 set WIN_TOOLS_ROOT_DIR=
92 exit /b %ERRORLEVEL% 96 exit /b %ERRORLEVEL%
93 97
94 :END 98 :END
95 call :returncode %ERRORLEVEL% 99 call :returncode %ERRORLEVEL%
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