blob: 3c5457bbd980403e6bb05e5eaa32e026bd77b5fc [file] [log] [blame]
maruel@chromium.org565db0e2009-06-05 18:08:54 +00001#!/bin/sh
cmp@chromium.org4c6e4042011-06-01 18:52:31 +00002# Copyright (c) 2011 The Chromium Authors. All rights reserved.
maruel@chromium.org565db0e2009-06-05 18:08:54 +00003# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
maruel@chromium.org2a74d372011-03-29 19:05:50 +00006# git-cl -- a git-command for integrating reviews on Rietveld
7# Copyright (C) 2008 Evan Martin <martine@danga.com>
8
maruel@chromium.org565db0e2009-06-05 18:08:54 +00009base_dir=$(dirname "$0")
msb@chromium.orgdffe4942009-11-18 02:25:16 +000010
msb@chromium.org2a949042010-10-18 18:04:01 +000011"$base_dir"/update_depot_tools
cmp@chromium.org4c6e4042011-06-01 18:52:31 +000012
13# Test if this script is running under a MSys install. If it is, we will
14# hardcode the path to Python where possible.
15OUTPUT="$(uname | grep 'MINGW')"
16MINGW=$?
17
18if [ -d "$base_dir/python_bin" -a $MINGW = 0 ]; then
19 exec "$base_dir/python_bin/python.exe" "$base_dir"/git_cl.py "$@"
20else
21 exec "$base_dir/git_cl.py" "$@"
22fi