mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
add auto-update step to 'fetch' wrappers
R=iannucci@chromium.org Review URL: https://codereview.chromium.org/13618002 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@192233 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
4
fetch
4
fetch
@@ -5,4 +5,8 @@
|
|||||||
|
|
||||||
base_dir=$(dirname "$0")
|
base_dir=$(dirname "$0")
|
||||||
|
|
||||||
|
if [[ "#grep#fetch#cleanup#diff#" != *"#$1#"* ]]; then
|
||||||
|
"$base_dir"/update_depot_tools
|
||||||
|
fi
|
||||||
|
|
||||||
PYTHONDONTWRITEBYTECODE=1 exec python "$base_dir/fetch.py" "$@"
|
PYTHONDONTWRITEBYTECODE=1 exec python "$base_dir/fetch.py" "$@"
|
||||||
|
|||||||
@@ -6,5 +6,8 @@
|
|||||||
:: This is required with cygwin only.
|
:: This is required with cygwin only.
|
||||||
PATH=%~dp0;%PATH%
|
PATH=%~dp0;%PATH%
|
||||||
|
|
||||||
|
:: Synchronize the root directory before deferring control back to gclient.py.
|
||||||
|
call "%~dp0\update_depot_tools.bat"
|
||||||
|
|
||||||
:: Defer control.
|
:: Defer control.
|
||||||
%~dp0python "%~dp0\fetch.py" %*
|
%~dp0python "%~dp0\fetch.py" %*
|
||||||
|
|||||||
Reference in New Issue
Block a user