Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(225)

Unified Diff: gclient

Issue 3856006: A refactoring left cygwin busted.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools/
Patch Set: '' Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « bootstrap/update_depot_tools.bat ('k') | update_depot_tools » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gclient
===================================================================
--- gclient (revision 63224)
+++ gclient (working copy)
@@ -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" "$@"
« no previous file with comments | « bootstrap/update_depot_tools.bat ('k') | update_depot_tools » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698