|
@@ -4,9 +4,13 @@
|
|
:: found in the LICENSE file.
|
|
:: found in the LICENSE file.
|
|
setlocal
|
|
setlocal
|
|
|
|
|
|
|
|
+:: Shall skip automatic update?
|
|
|
|
+IF "%DEPOT_TOOLS_UPDATE%" == "0" GOTO :CALL_GCLIENT
|
|
|
|
+
|
|
:: Synchronize the root directory before deferring control back to gclient.py.
|
|
:: Synchronize the root directory before deferring control back to gclient.py.
|
|
call "%~dp0update_depot_tools.bat" %*
|
|
call "%~dp0update_depot_tools.bat" %*
|
|
|
|
|
|
|
|
+:CALL_GCLIENT
|
|
:: Ensure that "depot_tools" is somewhere in PATH so this tool can be used
|
|
:: Ensure that "depot_tools" is somewhere in PATH so this tool can be used
|
|
:: standalone, but allow other PATH manipulations to take priority.
|
|
:: standalone, but allow other PATH manipulations to take priority.
|
|
set PATH=%PATH%;%~dp0
|
|
set PATH=%PATH%;%~dp0
|