verifying-crypto-with-lean/build.sh
mrwulf f0088a317e build: the book compiles on this Ubuntu — tectonic + dual-engine preamble
No root available here, so the toolchain is tectonic (single user-space
binary, packages fetched on demand). The preamble unicode block is now
dual-engine: pdfTeX keeps its DeclareUnicodeCharacter list, XeTeX gets a
newunicodechar twin generated from the same 37 mappings — both branches
must stay green (Mac pdflatex, Ubuntu tectonic). build.sh is the one
command. The committed PDF is current for the first time since July 6:
116 pages, ch13 + the live-log section finally in print.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-08 00:03:34 +02:00

16 lines
853 B
Bash
Executable file

#!/usr/bin/env bash
# Build the book. No root, no TeX Live install: tectonic is a single
# user-space binary that fetches packages on demand (first run is slow,
# after that it's seconds). pdflatex also works (the preamble carries a
# dual-engine unicode block); tectonic is what the repo's button uses.
set -euo pipefail
cd "$(dirname "$0")"
TECTONIC="${TECTONIC:-$HOME/.local/bin/tectonic}"
if [ ! -x "$TECTONIC" ] && command -v tectonic >/dev/null; then TECTONIC=tectonic; fi
[ -x "$TECTONIC" ] || command -v "$TECTONIC" >/dev/null || {
echo "no tectonic. Install (no root):"
echo " curl -sL https://github.com/tectonic-typesetting/tectonic/releases/download/tectonic%400.15.0/tectonic-0.15.0-x86_64-unknown-linux-musl.tar.gz | tar xz -C ~/.local/bin"
exit 1
}
"$TECTONIC" -X compile main.tex
pdfinfo main.pdf 2>/dev/null | grep Pages || true