agable@chromium.org | cc02350 | 2013-04-03 20:24:21 +0000 | [diff] [blame] | 1 | @echo off
|
| 2 | :: Copyright (c) 2013 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.
|
scottmg@chromium.org | 28974af | 2014-02-26 04:07:29 +0000 | [diff] [blame] | 5 | setlocal
|
agable@chromium.org | cc02350 | 2013-04-03 20:24:21 +0000 | [diff] [blame] | 6 |
|
dpranke@chromium.org | 3ba37d3 | 2013-04-04 07:51:07 +0000 | [diff] [blame] | 7 | :: Synchronize the root directory before deferring control back to gclient.py.
|
| 8 | call "%~dp0\update_depot_tools.bat"
|
Edward Lesmes | 002f97b | 2020-05-19 18:50:39 +0000 | [diff] [blame] | 9 | :: Abort the script if we failed to update depot_tools.
|
Aleksey Khoroshilov | 544594e | 2022-06-13 17:22:20 +0000 | [diff] [blame] | 10 | IF %ERRORLEVEL% NEQ 0 (
|
| 11 | exit /b %ERRORLEVEL%
|
Edward Lesmes | 002f97b | 2020-05-19 18:50:39 +0000 | [diff] [blame] | 12 | )
|
dpranke@chromium.org | 3ba37d3 | 2013-04-04 07:51:07 +0000 | [diff] [blame] | 13 |
|
Dan Jacques | 74809c1 | 2017-06-01 13:54:57 -0700 | [diff] [blame] | 14 | :: Ensure that "depot_tools" is somewhere in PATH so this tool can be used
|
| 15 | :: standalone, but allow other PATH manipulations to take priority.
|
| 16 | set PATH=%PATH%;%~dp0
|
| 17 |
|
agable@chromium.org | cc02350 | 2013-04-03 20:24:21 +0000 | [diff] [blame] | 18 | :: Defer control.
|
Josip Sokcevic | 06001cd | 2023-05-11 17:55:43 +0000 | [diff] [blame] | 19 | call vpython3 "%~dp0\fetch.py" %*
|