17 lines
334 B
Bash
Executable File
17 lines
334 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -Eeuo pipefail
|
|
|
|
# a small shell script to help compile bashbrew
|
|
|
|
dir="$(readlink -f "$BASH_SOURCE")"
|
|
dir="$(dirname "$dir")"
|
|
|
|
: "${CGO_ENABLED=0}" "${GOTOOLCHAIN=local}"
|
|
export CGO_ENABLED GOTOOLCHAIN
|
|
(
|
|
cd "$dir"
|
|
go build -trimpath -o bin/bashbrew ./cmd/bashbrew > /dev/null
|
|
)
|
|
|
|
exec "$dir/bin/bashbrew" "$@"
|