The tarball and make install carry tools/: Pretty, Doc, Scan So a program can build with the raz on PATH, not a submodule, and still check its layout with raz's formatter, found beside raz's real path. Installed raz is laid out as the tarball is.
| @@ -122,7 +122,8 @@ | ||
| 122 | 122 | `.github/workflows/ci.yml`, which checks it and makes the GitHub |
| 123 | 123 | release with a tarball of `raz` and `lib/`; it also checks every push |
| 124 | 124 | to `main`. `README.md`'s "Versions" gives the commands. v0.3.0 is |
| 125 | -the first; v0.9.0, report 2026-10.19, the latest. | |
| 125 | +the first; v0.9.1, report 2026-10.19, the latest: v0.9.0 with | |
| 126 | +`tools/` in the tarball, which the website offers from 0.7.1 on. | |
| 126 | 127 | |
| 127 | 128 | `test/libc` runs its programs over `lib/Sys.raz`, the C one, through |
| 128 | 129 | a link in its `mods`. A test or example without `.expect` is only |
| @@ -100,16 +100,19 @@ | ||
| 100 | 100 | -o build/raz.html |
| 101 | 101 | chromium --headless --no-pdf-header-footer --print-to-pdf=$@ build/raz.html 2>/dev/null |
| 102 | 102 | |
| 103 | -# raz and its library go together under $(PREFIX)/lib/raz; the link | |
| 104 | -# on PATH works since raz finds lib/ beside its real path. The manual | |
| 105 | -# pages go where man looks, beside bin. | |
| 103 | +# raz, its library and its tools go together under $(PREFIX)/lib/raz, | |
| 104 | +# laid out as in the tarball; the link on PATH works since raz finds | |
| 105 | +# lib/ beside its real path, and a program's make finds tools/ so. The | |
| 106 | +# manual pages go where man looks, beside bin. | |
| 106 | 107 | PREFIX = $(HOME)/.local |
| 107 | 108 | MAN = $(PREFIX)/share/man |
| 109 | +TOOLS = Pretty Doc Scan | |
| 108 | 110 | |
| 109 | 111 | install: raz build/raz-lib.3 |
| 110 | 112 | rm -rf $(PREFIX)/lib/raz |
| 111 | - mkdir -p $(PREFIX)/lib/raz $(PREFIX)/bin $(MAN)/man1 $(MAN)/man3 $(MAN)/man7 | |
| 113 | + mkdir -p $(PREFIX)/lib/raz/tools $(PREFIX)/bin $(MAN)/man1 $(MAN)/man3 $(MAN)/man7 | |
| 112 | 114 | cp -r raz lib $(PREFIX)/lib/raz |
| 115 | + cp $(TOOLS:%=tools/%.raz) $(PREFIX)/lib/raz/tools | |
| 113 | 116 | ln -sf $(PREFIX)/lib/raz/raz $(PREFIX)/bin/raz |
| 114 | 117 | cp doc/raz.1 $(MAN)/man1/raz.1 |
| 115 | 118 | cp build/raz-lib.3 $(MAN)/man3/raz-lib.3 |
| @@ -120,7 +123,8 @@ | ||
| 120 | 123 | $(MAN)/man7/raz.7 $(MAN)/man7/raz-tutorial.7 |
| 121 | 124 | |
| 122 | 125 | # A release's tarball, build/raz-V-linux-x86_64.tar.gz: raz, the lib/ |
| 123 | -# it reads beside itself, and the manual pages, V being what raz | |
| 126 | +# it reads beside itself, the tools a program's make may build (the | |
| 127 | +# formatter, Doc and the Scan they share) and the manual pages, V being what raz | |
| 124 | 128 | # --version says. It is made of the checkout in TREE, this one unless |
| 125 | 129 | # given: CI packs the tag it checked out, and site/build.py the latest |
| 126 | 130 | # tag, which it checks out apart. |
| @@ -132,6 +136,7 @@ | ||
| 132 | 136 | d=raz-$$v-linux-x86_64; \ |
| 133 | 137 | rm -rf build/$$d && mkdir -p build/$$d/man && \ |
| 134 | 138 | cp -r $(TREE)/raz $(TREE)/lib $(TREE)/LICENSE $(TREE)/README.md build/$$d && \ |
| 139 | + mkdir build/$$d/tools && cp $(TOOLS:%=$(TREE)/tools/%.raz) build/$$d/tools && \ | |
| 135 | 140 | cp $(TREE)/doc/raz.1 $(TREE)/doc/raz.7 $(TREE)/doc/raz-tutorial.7 \ |
| 136 | 141 | $(TREE)/build/raz-lib.3 build/$$d/man && \ |
| 137 | 142 | tar czf build/$$d.tar.gz -C build $$d && rm -rf build/$$d && \ |
| @@ -9,7 +9,8 @@ | ||
| 9 | 9 | procedures (reports 2026-10.18 and 10.19), is tagged by the owner's |
| 10 | 10 | word. All before v0.7.1 is approved by the owner; v0.7.1, the |
| 11 | 11 | manual, v0.8.0, better code again, and v0.9.0 wait for the owner's |
| 12 | -review. | |
| 12 | +review. v0.9.1, by the owner's word, adds `tools/` to the tarball, | |
| 13 | +for the programs that build with the raz on PATH: rat, rterm, rloc. | |
| 13 | 14 | |
| 14 | 15 | ## Done: better code for reals |
| 15 | 16 |
| @@ -53,7 +53,8 @@ | ||
| 53 | 53 | and builds into the repository's root: |
| 54 | 54 | |
| 55 | 55 | make # ./raz |
| 56 | - make install # ~/.local/bin/raz, its library in ~/.local/lib/raz, | |
| 56 | + make install # ~/.local/bin/raz, its library and tools in | |
| 57 | + # ~/.local/lib/raz, as the release's tarball has them, | |
| 57 | 58 | # and its manual pages, raz(1), raz(7), |
| 58 | 59 | # raz-tutorial(7) and raz-lib(3) |
| 59 | 60 | make uninstall # removes them again |
| @@ -64,7 +64,8 @@ | ||
| 64 | 64 | |
| 65 | 65 | <h2 id="download">Download</h2> |
| 66 | 66 | <p>raz @VERSION@ is a tarball for x86-64 Linux with the compiler, <code>raz</code>, |
| 67 | -its library, <code>lib/</code>, which it finds beside itself, and the manual | |
| 67 | +its library, <code>lib/</code>, which it finds beside itself, the formatter | |
| 68 | +and the documentation tool as sources in <code>tools/</code>, and the manual | |
| 68 | 69 | pages. It needs nothing else installed.</p> |
| 69 | 70 | <div class="cta"> |
| 70 | 71 | <a class="btn primary" href="download/@TARBALL@">Download raz @VERSION@</a> |