diff options
| author | Ralph Amissah <ralph.amissah@gmail.com> | 2026-10-13 16:54:02 -0400 |
|---|---|---|
| committer | Ralph Amissah <ralph.amissah@gmail.com> | 2026-10-13 16:54:02 -0400 |
| commit | 3f34ec6afde21801eff0b655949a6d219e47943c (patch) | |
| tree | 6e95a210663bcc7f41d0791de1769a2535988180 /pipeline/build.sh | |
| parent | format 2.1: the pipeline reads with ocda-read (diff) | |
The writer's version follows the format's: 2.1.0 in dub.json,
gleam.toml and both flakes (it was 2.0.0), and manifest.toml locks the
library at 2.1.0 to match. A release is numbered major.minor.patch,
major.minor being the format and shared with the specification and
the library, the patch the writer's own.
flake.lock, in dlang/ and gleam/, pins the library at its 2.1.0
release and nixpkgs as that release locks it, so the writer builds
with what the library was built and checked with. The READMEs say
plain nix build, and how to build against a working copy of the
library instead.
The pipeline no longer builds or runs sisudoc-ssp-reader and
sisudoc-ocda-db-reader, which are frozen: ocda-read, the library's
reader, covers both, and read.sh already ran it from both forms and in
both languages. Gone from build.sh, config.sh, one.sh and read.sh, and
from pipeline/README.md, which with config.sh now names spine's
--show-abstraction as the README does. build.sh still gives the writer
the library beside it, so that the library run and the library built in
are the same one.
README, to what was decided for these writers: the outputs must be
identical from every form and the D and Gleam writers must agree byte
for byte, but they are not held to spine's bytes; each format has its
own judge, and a difference from spine is there to read better. The
introduction said "identical to each other and to spine's", and the
example compared --text with spine's text file, which fails by
design; the example now compares the .ssp and the .ocda.db. The
documents the checks run over are the markup document samples, named
with their repository and the spine flags that build the artefacts,
and the counts read "all" or "every document" rather than a number,
here and in dlang/, gleam/ and pipeline/README.md. The format is 2.1,
and the license is stated.
Checked: D and Gleam build from the lock; over the markup document
samples, D == Gleam in text, markdown, html, epub and typst for every
document-language, and the .ssp and the .ocda.db give the same output.
(assisted by Claude-Code)
Diffstat (limited to 'pipeline/build.sh')
| -rwxr-xr-x | pipeline/build.sh | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/pipeline/build.sh b/pipeline/build.sh index 72c9b11..6e1ef10 100755 --- a/pipeline/build.sh +++ b/pipeline/build.sh @@ -1,9 +1,10 @@ #!/usr/bin/env sh -# Build every reader, every library and every writer, in both languages. +# Build the library (with its reader, ocda-read) and the writer, in both languages. # -# Each project is its own flake and builds on its own. The library has no -# public url yet, so the three that depend on it are given the local copy with -# --override-input; that argument goes away when it is published. +# Each project is its own flake and builds on its own. The writer's flakes lock +# the published library; here they are given the copy at $OCDA_LIB with +# --override-input, so that the library run and the library built into the +# writer are the same one. Where that fails, the build falls back to the lock. set -e . "$(dirname "$0")/config.sh" @@ -24,10 +25,6 @@ failed=0 # first, and the dump this pipeline reads was not there. build "$OCDA_LIB/dlang" build "$OCDA_LIB/gleam" -build "$SSP_READER/dlang" -build "$SSP_READER/gleam" -build "$DB_READER/dlang" -build "$DB_READER/gleam" build "$WRITERS/dlang" build "$WRITERS/gleam" exit $failed |
