#!/usr/bin/env bash # Validate by compiling through the same Typst data and contract path as rendering. set -euo pipefail [[ $# -eq 1 ]] || { echo "Usage: $0 INPUT" >&2; exit 2; } temp=$(mktemp -d "${TMPDIR:-/tmp}/reportist-validate.XXXXXXXX") trap 'rm -rf "$temp"' EXIT "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)/render.sh" "$1" --output "$temp/report.pdf" >/dev/null echo "Valid report v1: $1"