gclient 517 Bytes
Newer Older
1
#!/usr/bin/env bash
2 3 4 5 6
# 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")
7

8
if [[ "#grep#fetch#cleanup#diff#" != *"#$1#"* ]]; then
9
  "$base_dir"/update_depot_tools "$@"
10 11 12 13 14 15 16 17 18 19
  case $? in
    123)
      # msys environment was upgraded, need to quit.
      exit 0
      ;;
    0)
      ;;
    *)
      exit $?
  esac
20
fi
21

22
PYTHONDONTWRITEBYTECODE=1 exec python "$base_dir/gclient.py" "$@"