gsutil.py.bat 743 B

1234567891011121314151617181920212223
  1. @echo off
  2. :: Copyright (c) 2018 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.
  5. setlocal
  6. :: Shall skip automatic update?
  7. IF "%DEPOT_TOOLS_UPDATE%" == "0" GOTO :CALL_GSUTIL
  8. :: Synchronize the root directory before deferring control back to gsutil.py.
  9. call "%~dp0update_depot_tools.bat" %*
  10. :: Abort the script if we failed to update depot_tools.
  11. IF %ERRORLEVEL% NEQ 0 (
  12. exit /b %ERRORLEVEL%
  13. )
  14. :CALL_GSUTIL
  15. :: Ensure that "depot_tools" is somewhere in PATH so this tool can be used
  16. :: standalone, but allow other PATH manipulations to take priority.
  17. set PATH=%PATH%;%~dp0
  18. :: Defer control.
  19. python3 "%~dp0gsutil.py" %*