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:
dpranke@chromium.org
2013-04-04 07:51:07 +00:00
parent cf9846cf66
commit 3ba37d3727
2 changed files with 7 additions and 0 deletions

4
fetch
View File

@@ -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" "$@"

View File

@@ -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" %*