#!/usr/bin/env bash # Acceptance gate for the whole book: compiles every example, runs the tests, # renders the book. Runs inside the Nix devShell when Nix is available. set -euo pipefail cd "$(dirname "$0")/.." if command -v nix >/dev/null 2>&1; then exec nix develop --command bash scripts/verify-inner.sh else echo "verify: nix not found, using the system toolchain (clang++ >= 22 required)" >&2 exec bash scripts/verify-inner.sh fi