blob: 3eb7845354c1e99e8e2f8d1fd53de07337056924 [file] [log] [blame]
agable@chromium.orgcc023502013-04-03 20:24:21 +00001@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.org28974af2014-02-26 04:07:29 +00005setlocal
agable@chromium.orgcc023502013-04-03 20:24:21 +00006
dpranke@chromium.org3ba37d32013-04-04 07:51:07 +00007:: Synchronize the root directory before deferring control back to gclient.py.
8call "%~dp0\update_depot_tools.bat"
Edward Lesmes002f97b2020-05-19 18:50:39 +00009:: Abort the script if we failed to update depot_tools.
Aleksey Khoroshilov544594e2022-06-13 17:22:20 +000010IF %ERRORLEVEL% NEQ 0 (
11 exit /b %ERRORLEVEL%
Edward Lesmes002f97b2020-05-19 18:50:39 +000012)
dpranke@chromium.org3ba37d32013-04-04 07:51:07 +000013
Dan Jacques74809c12017-06-01 13:54:57 -070014:: Ensure that "depot_tools" is somewhere in PATH so this tool can be used
15:: standalone, but allow other PATH manipulations to take priority.
16set PATH=%PATH%;%~dp0
17
agable@chromium.orgcc023502013-04-03 20:24:21 +000018:: Defer control.
Josip Sokcevic06001cd2023-05-11 17:55:43 +000019call vpython3 "%~dp0\fetch.py" %*