#!/usr/bin/env bash
# `pnpm import:equine --check | --out
` (alias `pnpm r5:import-equine`): the official
# writer of the seed since R5.6, the anatomical pipeline on the core (R5.2 to R5.6), the `import-equine` binary of crates/core behind its `curation` feature, on the native
# toolchain of the development machine (scripts/rust-env.sh). The first run compiles it
# (release profile); the next ones start at once. `--check` compares the produced folders with
# the committed seed and writes nothing; `--out ` writes `/legacy-import` and
# `/draft` into an absent or empty folder (a relative path is typed from the folder pnpm
# was run in, INIT_CWD). The TypeScript generator left at R5.7; it is replayed from a historical
# revision only (RUST.md ยง11.23).
set -euo pipefail
cd "$(dirname "$0")/.."
. scripts/rust-env.sh
exec cargo run --release --locked -q -p faunosteo-core --features curation --bin import-equine -- "$@"