mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 02:31:29 +00:00
Goma is not available on ppc/s390x platforms and causes a crash when running gclient as it cannot find goma_ctl.py. Change-Id: Icf08c6782d66f99eaf8f3c6ba42a170521afeb86 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4545381 Reviewed-by: Gavin Mak <gavinmak@google.com> Commit-Queue: Gavin Mak <gavinmak@google.com> Reviewed-by: Bruce Dawson <brucedawson@chromium.org>
26 lines
683 B
Bash
Executable File
26 lines
683 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Copyright 2019 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.
|
|
|
|
# See revert instructions in cipd_manifest.txt
|
|
|
|
# In git bash on Windows, invoke the batch file.
|
|
if [ "$(expr "$(uname -s)" : "^MINGW64_NT")" == "10" ]; then
|
|
goma_ctl.bat "$@"
|
|
exit
|
|
fi
|
|
|
|
MYPATH=$(dirname "${BASH_SOURCE[0]}")
|
|
|
|
source "$MYPATH/cipd_bin_setup.sh"
|
|
cipd_bin_setup &> /dev/null
|
|
|
|
GOMA="$MYPATH/.cipd_bin/goma_ctl.py"
|
|
if [[ -f "$GOMA" ]]; then
|
|
PYTHONDONTWRITEBYTECODE=1 exec python3 "$GOMA" "$@"
|
|
else
|
|
echo "'$GOMA' was not found and may not be supported on this platform!"
|
|
fi
|