14 lines
380 B
Bash
Executable file
14 lines
380 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
repo=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)
|
|
if (($#)); then
|
|
exec python3 "$repo/lib/rice.py" "$@"
|
|
fi
|
|
cd "$repo"
|
|
if ! command -v go >/dev/null; then
|
|
echo 'The TUI requires Go to build. Use ./install --plan for the Python preview.' >&2
|
|
exit 1
|
|
fi
|
|
mkdir -p build
|
|
go build -o build/fiw-dots ./cmd/dots
|
|
exec build/fiw-dots
|