Commit 18e4135e authored by maruel@chromium.org's avatar maruel@chromium.org

Fix gcl under cygwin. Really ugly fix...

Review URL: http://codereview.chromium.org/113205

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@15757 0039d316-1c4b-4281-b951-d872f2087c98
parent f30a4384
#!/bin/sh #!/bin/sh
# Copyright (c) 2009 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.
base_dir=$(dirname "$0") base_dir=$(dirname "$0")
# Use the batch file as an entry point if on cygwin.
if [ "${OSTYPE}" = "cygwin" ]; then
${base_dir}/gcl.bat $*
exit
fi
exec python "$base_dir/gcl.py" "$@" exec python "$base_dir/gcl.py" "$@"
@call python "%~dp0gcl.py" %* @echo off
:: This is required with cygwin only.
PATH=%~dp0;%PATH%
call python "%~dp0gcl.py" %*
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment