Files
hakorune/tools/bin/hako

14 lines
244 B
Bash

#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "$0")/../.." && pwd)"
BIN="$ROOT_DIR/target/release/nyash"
if [[ ! -x "$BIN" ]]; then
echo "[info] building (release) ..." >&2
cargo build --release -q
fi
exec "$BIN" "$@"