blob: 1680ecd3c0e5d9d29fbd6eba74d5c1d59b64d20c [file] [log] [blame]
thestig@chromium.org6df33342009-09-15 20:39:14 +00001#!/bin/bash
maruel@google.comfb2b8eb2009-04-23 21:03:42 +00002# 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.comfb2b8eb2009-04-23 21:03:42 +00006base_dir=$(dirname "$0")
maruel@chromium.org522ca092009-06-17 18:35:18 +00007
scottbyer@chromium.org7526fe32010-10-20 18:05:30 +00008# 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.
10if [ "${OSTYPE}" = "cygwin" -a "${TERM}" != "xterm" ]; then
11 ${base_dir}/gclient.bat "$@"
12 exit
13fi
14
msb@chromium.org2a949042010-10-18 18:04:01 +000015"$base_dir"/update_depot_tools
maruel@chromium.org522ca092009-06-17 18:35:18 +000016
17exec python "$base_dir/gclient.py" "$@"