# Where everything is, and where the output goes. # # Every path is a variable with a default, and the defaults assume the layout # these repositories are developed in: each project cloned beside the others, # and this one among them. Nothing here reaches outside those clones, so a # different arrangement needs only this file changed. # # Override any of them in the environment: # # OUT=/tmp/my-run sh pipeline/run.sh # # shellcheck shell=sh # this repository WRITERS=${WRITERS:-$(cd "$(dirname "$0")/.." && pwd)} # the sibling repositories, by their own names. A clone puts each under its # short name; where they sit relative to each other is the only local fact. SIBLINGS=${SIBLINGS:-$(cd "$WRITERS/.." && pwd)} OCDA_LIB=${OCDA_LIB:-$SIBLINGS/sisudoc-ocda-lib} # the abstraction artefacts to read: a directory holding .ssp files, and for # each of them a .ocda.db and, where there is one, a .sisupod beside it. This # is what spine writes with --show-abstraction --ocda-db --pod2; see # pipeline/README. ARTEFACTS=${ARTEFACTS:-} # where the output goes. One directory per stage, so a run can be looked at. OUT=${OUT:-./pipeline-out} # the tools a pdf needs. Absent, the typst stage is skipped and says so. TYPST=${TYPST:-typst} # how many documents to run. Empty means all of them; a number takes the first # n, which is what to use while looking at something. LIMIT=${LIMIT:-}