mirror of
https://github.com/shinyobjectz/raea.git
synced 2026-12-01 06:53:19 -10:00
This repository was an export of a private one; from this commit on it is where raea is developed. Contributions: CONTRIBUTING.md.
16 lines
946 B
Bash
Executable File
16 lines
946 B
Bash
Executable File
#!/bin/bash
|
|
# rask (tools/rask, a submodule: github.com/shinyobjectz/rask): tasks are feature-file scenarios, marked in the Rust
|
|
# with `// rask: ID what`, claimed by lanes, closed only when checked (docs/agents.md, "Tasks"). Built on first use and
|
|
# whenever its source is newer than the binary, in a lane of its own: a small compile that every L0 needs shouldn't queue
|
|
# behind the release builds (10-28: two L1s waited on it behind 40-minute builds).
|
|
set -euo pipefail
|
|
ROOT=$(cd "$(dirname "$0")/.." && pwd)
|
|
R=$ROOT/tools/rask
|
|
[ -f "$R/Cargo.toml" ] || git -C "$ROOT" submodule update --init -q tools/rask
|
|
bin=$R/target/release/rask
|
|
if [ ! -x "$bin" ] || [ -n "$(find "$R/src" "$R/Cargo.toml" -newer "$bin" 2>/dev/null | head -1)" ]; then
|
|
if command -v lane >/dev/null; then lane rask -- cargo build --release -q --manifest-path "$R/Cargo.toml" >&2
|
|
else cargo build --release -q --manifest-path "$R/Cargo.toml" >&2; fi
|
|
fi
|
|
exec "$bin" "$@"
|