Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/tools/codebook/build.sh # omega-mv Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance. Brought by drakestapleton Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / tools / codebook / build.sh` 16 lines ยท 1026 bytes Raw Blame History 1 #!/bin/sh 2 # build.sh -- compile tools/codebook/codebook.om with the seeded omc, after the seeded SHA-256 core. 3 # Run from the repo root: sh tools/codebook/build.sh (OMC defaults to seed/out/omc) 4 # codebook.om is the shared core (also compiled into tools/trit); main.om is the command line. 5 # Same composition as tools/trit/build.sh and seed/omega-from-seed.sh step 5: om2 line, the 6 # `abstract` line (omc refuses it after any fn, error 9), sha256.om up to "fn sha256", the program. 7 set -eu 8 R=$(CDPATH= cd -- "$(dirname "$0")/../.." && pwd) 9 cd "$R" 10 OMC=${OMC:-seed/out/omc} 11 B=${B:-build/codebook} 12 mkdir -p "$B" 13 { printf 'om2\n'; grep '^abstract ' tools/codebook/codebook.om; sed '/^fn sha256 /,$d' seed/trace/sha256.om; grep -v '^abstract ' tools/codebook/codebook.om; cat tools/codebook/main.om; } > "$B/codebook.full.om" 14 "$OMC" < "$B/codebook.full.om" > "$B/codebook" 15 chmod +x "$B/codebook" 16 sha256sum "$OMC" tools/codebook/codebook.om tools/codebook/main.om tools/codebook/codebook.tsv "$B/codebook.full.om" "$B/codebook"