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:
scottbyer@chromium.org
2010-10-20 18:05:30 +00:00
parent b153d873cf
commit 7526fe3b28
4 changed files with 26 additions and 16 deletions

View File

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