diff --git a/download_from_google_storage b/download_from_google_storage index 41d6e8123..74e1e83f9 100755 --- a/download_from_google_storage +++ b/download_from_google_storage @@ -5,4 +5,4 @@ base_dir=$(dirname "$0") -PYTHONDONTWRITEBYTECODE=1 exec $base_dir/vpython "$base_dir/download_from_google_storage.py" "$@" +PYTHONDONTWRITEBYTECODE=1 exec python "$base_dir/download_from_google_storage.py" "$@" diff --git a/download_from_google_storage.bat b/download_from_google_storage.bat index f05008228..f1f2d2161 100755 --- a/download_from_google_storage.bat +++ b/download_from_google_storage.bat @@ -9,4 +9,4 @@ setlocal set PATH=%PATH%;%~dp0 :: Defer control. -%~dp0\vpython "%~dp0\download_from_google_storage.py" %* +python "%~dp0\download_from_google_storage.py" %* diff --git a/download_from_google_storage.py b/download_from_google_storage.py index 57378aae2..3dcc86243 100755 --- a/download_from_google_storage.py +++ b/download_from_google_storage.py @@ -1,4 +1,4 @@ -#!/usr/bin/env vpython +#!/usr/bin/env python # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. diff --git a/fetch b/fetch index 3a940a287..bea6718c7 100755 --- a/fetch +++ b/fetch @@ -5,4 +5,4 @@ base_dir=$(dirname "$0") -PYTHONDONTWRITEBYTECODE=1 exec $base_dir/vpython "$base_dir/fetch.py" "$@" +PYTHONDONTWRITEBYTECODE=1 exec python "$base_dir/fetch.py" "$@" diff --git a/fetch.bat b/fetch.bat index 3e226538c..5f8019a19 100755 --- a/fetch.bat +++ b/fetch.bat @@ -12,4 +12,4 @@ call "%~dp0\update_depot_tools.bat" set PATH=%PATH%;%~dp0 :: Defer control. -%~dp0\vpython "%~dp0\fetch.py" %* +python "%~dp0\fetch.py" %* diff --git a/fetch.py b/fetch.py index 72e52c796..56abfb9a6 100755 --- a/fetch.py +++ b/fetch.py @@ -1,4 +1,4 @@ -#!/usr/bin/env vpython +#!/usr/bin/env python # Copyright (c) 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. diff --git a/gclient b/gclient index 22c9295eb..4ff6b3cbd 100755 --- a/gclient +++ b/gclient @@ -5,21 +5,18 @@ base_dir=$(dirname "$0") -# Update depot_tools unless DEPOT_TOOLS_UPDATE is set to 0 -if [ "X$DEPOT_TOOLS_UPDATE" != "X0" ]; then - if [[ "#grep#fetch#cleanup#diff#setdep#" != *"#$1#"* ]]; then - "$base_dir"/update_depot_tools "$@" - case $? in - 123) - # msys environment was upgraded, need to quit. - exit 0 - ;; - 0) - ;; - *) - exit $? - esac - fi +if [[ "#grep#fetch#cleanup#diff#setdep#" != *"#$1#"* ]]; then + "$base_dir"/update_depot_tools "$@" + case $? in + 123) + # msys environment was upgraded, need to quit. + exit 0 + ;; + 0) + ;; + *) + exit $? + esac fi -PYTHONDONTWRITEBYTECODE=1 exec $base_dir/vpython "$base_dir/gclient.py" "$@" +PYTHONDONTWRITEBYTECODE=1 exec python "$base_dir/gclient.py" "$@" diff --git a/gclient-new-workdir.py b/gclient-new-workdir.py index 621606dd8..e9eee62b1 100755 --- a/gclient-new-workdir.py +++ b/gclient-new-workdir.py @@ -1,4 +1,4 @@ -#!/usr/bin/env vpython +#!/usr/bin/env python # Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. diff --git a/gclient.bat b/gclient.bat index 7b7acf513..5aaff866c 100755 --- a/gclient.bat +++ b/gclient.bat @@ -4,17 +4,12 @@ :: found in the LICENSE file. setlocal -:: Shall skip automatic update? -IF "%DEPOT_TOOLS_UPDATE%" == "0" GOTO :SKIP_UPDATE - :: Synchronize the root directory before deferring control back to gclient.py. call "%~dp0update_depot_tools.bat" %* -:SKIP_UPDATE - :: Ensure that "depot_tools" is somewhere in PATH so this tool can be used :: standalone, but allow other PATH manipulations to take priority. set PATH=%PATH%;%~dp0 :: Defer control. -%~dp0\vpython "%~dp0\gclient.py" %* +python "%~dp0gclient.py" %* diff --git a/gclient.py b/gclient.py index 35df62f1d..f940f6830 100755 --- a/gclient.py +++ b/gclient.py @@ -1,4 +1,4 @@ -#!/usr/bin/env vpython +#!/usr/bin/env python # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. diff --git a/roll-dep b/roll-dep index 8875bef75..19ddb8058 100755 --- a/roll-dep +++ b/roll-dep @@ -5,4 +5,4 @@ base_dir=$(dirname "$0") -PYTHONDONTWRITEBYTECODE=1 exec $base_dir/vpython "$base_dir/roll_dep.py" "$@" +PYTHONDONTWRITEBYTECODE=1 exec python "$base_dir/roll_dep.py" "$@" diff --git a/roll-dep-svn b/roll-dep-svn index f4f3a3fd9..1d65c7b48 100755 --- a/roll-dep-svn +++ b/roll-dep-svn @@ -5,4 +5,4 @@ base_dir=$(dirname "$0") -PYTHONDONTWRITEBYTECODE=1 exec $base_dir/vpython "$base_dir/roll_dep_svn.py" "$@" +PYTHONDONTWRITEBYTECODE=1 exec python "$base_dir/roll_dep_svn.py" "$@" diff --git a/roll-dep-svn.bat b/roll-dep-svn.bat index af6ccd8d8..6ff5db78f 100755 --- a/roll-dep-svn.bat +++ b/roll-dep-svn.bat @@ -9,4 +9,4 @@ setlocal set PATH=%PATH%;%~dp0 :: Defer control. -%~dp0\vpython "%~dp0\roll_dep_svn.py" %* +python "%~dp0\roll_dep_svn.py" %* diff --git a/roll-dep.bat b/roll-dep.bat index 9b4cfee78..c49c88dc5 100755 --- a/roll-dep.bat +++ b/roll-dep.bat @@ -9,4 +9,4 @@ setlocal set PATH=%PATH%;%~dp0 :: Defer control. -%~dp0\vpython "%~dp0\roll_dep.py" %* +python "%~dp0\roll_dep.py" %* diff --git a/roll_dep.py b/roll_dep.py index 4c20d5b66..a41be4812 100755 --- a/roll_dep.py +++ b/roll_dep.py @@ -1,4 +1,4 @@ -#!/usr/bin/env vpython +#!/usr/bin/env python # Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. diff --git a/roll_dep_svn.py b/roll_dep_svn.py index c569969cf..a7c9a2803 100755 --- a/roll_dep_svn.py +++ b/roll_dep_svn.py @@ -1,4 +1,4 @@ -#!/usr/bin/env vpython +#!/usr/bin/env python # Copyright (c) 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file.