mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
A refactoring left cygwin busted.
Create an update_depot_tools.bat file to use for updated when on cygwin, and properly call it from the update_depot_tools shell script and gclient batch files. BUG=none TEST=gclient sync and git cl work again on cygwin. Can also turn echo on in update_depot_tools.bat to verify updating working correctly. Review URL: http://codereview.chromium.org/3856006 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@63234 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
7
gclient
7
gclient
@@ -5,6 +5,13 @@
|
||||
|
||||
base_dir=$(dirname "$0")
|
||||
|
||||
# Use the batch file as an entry point if on cygwin. Needs to happen before
|
||||
# the call to update the tools or the update will happen twice.
|
||||
if [ "${OSTYPE}" = "cygwin" -a "${TERM}" != "xterm" ]; then
|
||||
${base_dir}/gclient.bat "$@"
|
||||
exit
|
||||
fi
|
||||
|
||||
"$base_dir"/update_depot_tools
|
||||
|
||||
exec python "$base_dir/gclient.py" "$@"
|
||||
|
||||
Reference in New Issue
Block a user