27 lines
439 B
Bash
27 lines
439 B
Bash
|
|
#!/usr/bin/env bash
|
||
|
|
|
||
|
|
set -euo pipefail
|
||
|
|
|
||
|
|
die() {
|
||
|
|
local message="$1"
|
||
|
|
local code="${2:-2}"
|
||
|
|
echo "${message}" >&2
|
||
|
|
exit "${code}"
|
||
|
|
}
|
||
|
|
|
||
|
|
usage() {
|
||
|
|
cat <<EOF
|
||
|
|
Usage: $0 <base-ref> <test-ref> [compare_paths args...]
|
||
|
|
|
||
|
|
Wrapper for ci/bench/compare_git_refs.sh.
|
||
|
|
EOF
|
||
|
|
}
|
||
|
|
|
||
|
|
if [[ "${1:-}" == "-h" || "${1:-}" == "--help" ]]; then
|
||
|
|
usage
|
||
|
|
exit 0
|
||
|
|
fi
|
||
|
|
|
||
|
|
bench_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||
|
|
"${bench_dir}/compare_git_refs.sh" "$@"
|