maruel@chromium.org | 3bb0d6f | 2010-11-15 17:01:52 +0000 | [diff] [blame^] | 1 | #!/usr/bin/env bash |
maruel@google.com | fb2b8eb | 2009-04-23 21:03:42 +0000 | [diff] [blame] | 2 | # Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 3 | # Use of this source code is governed by a BSD-style license that can be |
| 4 | # found in the LICENSE file. |
| 5 | |
maruel@google.com | fb2b8eb | 2009-04-23 21:03:42 +0000 | [diff] [blame] | 6 | base_dir=$(dirname "$0") |
maruel@chromium.org | 522ca09 | 2009-06-17 18:35:18 +0000 | [diff] [blame] | 7 | |
scottbyer@chromium.org | 7526fe3 | 2010-10-20 18:05:30 +0000 | [diff] [blame] | 8 | # Use the batch file as an entry point if on cygwin. Needs to happen before |
| 9 | # the call to update the tools or the update will happen twice. |
| 10 | if [ "${OSTYPE}" = "cygwin" -a "${TERM}" != "xterm" ]; then |
| 11 | ${base_dir}/gclient.bat "$@" |
| 12 | exit |
| 13 | fi |
| 14 | |
msb@chromium.org | 2a94904 | 2010-10-18 18:04:01 +0000 | [diff] [blame] | 15 | "$base_dir"/update_depot_tools |
maruel@chromium.org | 522ca09 | 2009-06-17 18:35:18 +0000 | [diff] [blame] | 16 | |
| 17 | exec python "$base_dir/gclient.py" "$@" |