Arquivos
magenta/scripts/bisect-prebuilts-arm64
dana koch db82b6fedb [scripts] Search for bash with the env(1) trick.
This permits Magenta to build properly on systems where bash is not the default
shell and/or is installed in locations other than /bin.

Change-Id: Ic95e215c5d28b1a6e653bec53283540868c628f8
2016-08-22 22:47:51 +00:00

23 linhas
752 B
Bash
Arquivo Executável

#!/usr/bin/env bash
# Copyright 2016 The Fuchsia Authors
#
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/MIT
# Use this script to bisect a regression using the prebuilt magenta kernel images. The arguments to
# this script are passed to 'git bisect start'
set -e
readonly DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# During the bisect git will change the working tree including the bisect script, so make a copy of
# it in a temporary location first.
readonly TEMP_DIR="$(mktemp -d)"
trap "rm -rf ${TEMP_DIR}" EXIT
cp "${DIR}/bisect-helper-arm64" "${TEMP_DIR}"
git bisect start $@
git bisect run "${TEMP_DIR}/bisect-helper-arm64" "${DIR}"