raz / commit fa7efe10

commit
fa7efe106f5f073c99bc6ad74900c378d797c6b2
author
Luis <42945842+ldiaz94@users.noreply.github.com>
date
parent
19bcd2cb
release
v0.9.1
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.

patch · log

5 files changed, +18 -9

CLAUDE.md modified +2 -1

@@ -122,7 +122,8 @@
122122 `.github/workflows/ci.yml`, which checks it and makes the GitHub
123123 release with a tarball of `raz` and `lib/`; it also checks every push
124124 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.
126127
127128 `test/libc` runs its programs over `lib/Sys.raz`, the C one, through
128129 a link in its `mods`. A test or example without `.expect` is only

Makefile (history) modified +10 -5

@@ -100,16 +100,19 @@
100100 -o build/raz.html
101101 chromium --headless --no-pdf-header-footer --print-to-pdf=$@ build/raz.html 2>/dev/null
102102
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.
106107 PREFIX = $(HOME)/.local
107108 MAN = $(PREFIX)/share/man
109+TOOLS = Pretty Doc Scan
108110
109111 install: raz build/raz-lib.3
110112 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
112114 cp -r raz lib $(PREFIX)/lib/raz
115+ cp $(TOOLS:%=tools/%.raz) $(PREFIX)/lib/raz/tools
113116 ln -sf $(PREFIX)/lib/raz/raz $(PREFIX)/bin/raz
114117 cp doc/raz.1 $(MAN)/man1/raz.1
115118 cp build/raz-lib.3 $(MAN)/man3/raz-lib.3
@@ -120,7 +123,8 @@
120123 $(MAN)/man7/raz.7 $(MAN)/man7/raz-tutorial.7
121124
122125 # 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
124128 # --version says. It is made of the checkout in TREE, this one unless
125129 # given: CI packs the tag it checked out, and site/build.py the latest
126130 # tag, which it checks out apart.
@@ -132,6 +136,7 @@
132136 d=raz-$$v-linux-x86_64; \
133137 rm -rf build/$$d && mkdir -p build/$$d/man && \
134138 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 && \
135140 cp $(TREE)/doc/raz.1 $(TREE)/doc/raz.7 $(TREE)/doc/raz-tutorial.7 \
136141 $(TREE)/build/raz-lib.3 build/$$d/man && \
137142 tar czf build/$$d.tar.gz -C build $$d && rm -rf build/$$d && \

PLAN.md (history) modified +2 -1

@@ -9,7 +9,8 @@
99 procedures (reports 2026-10.18 and 10.19), is tagged by the owner's
1010 word. All before v0.7.1 is approved by the owner; v0.7.1, the
1111 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.
1314
1415 ## Done: better code for reals
1516

README.md (history) modified +2 -1

@@ -53,7 +53,8 @@
5353 and builds into the repository's root:
5454
5555 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,
5758 # and its manual pages, raz(1), raz(7),
5859 # raz-tutorial(7) and raz-lib(3)
5960 make uninstall # removes them again

site/content/home.html (history) modified +2 -1

@@ -64,7 +64,8 @@
6464
6565 <h2 id="download">Download</h2>
6666 <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
6869 pages. It needs nothing else installed.</p>
6970 <div class="cta">
7071 <a class="btn primary" href="download/@TARBALL@">Download raz @VERSION@</a>