Files
memex/projects/check-tangle
Amr Gharbeia 18b289dff8 fix: tool bugs found in review audit
repl:  env var was dead code (hardcoded 2s), empty frame gave misleading error
check-tangle: show full SBCL output on compile failure, not filtered
verify-repl: blacklist now configurable via VERIFY_REPL_EXCLUDE env var;
  regex tightened to ';; +REPL-VERIFIED:' from ';;.REPL.VERIFIED:' (ambiguous)
org-eval: 1-based indexing to match repl-block; errors on out-of-range; errors on <1
2026-05-13 13:09:50 -04:00
..

check-tangle

Tangle an .org file and compile the resulting .lisp with SBCL in one step.

== Usage

  check-tangle org/file.org

Exit 0 if compilation succeeds, 1 if tangling or compilation fails.

== What it checks

  1. Reads the :tangle header from the org file to find the target .lisp path
  2. Runs tangle to generate the .lisp from the .org source
  3. Runs sbcl compile-file on the result
  4. Reports the first compile error if any

== Requires

Emacs (for tangling), SBCL (for compilation).