From fa7efe106f5f073c99bc6ad74900c378d797c6b2 Mon Sep 17 00:00:00 2001 From: Luis <42945842+ldiaz94@users.noreply.github.com> Date: Tue, 13 Oct 2026 13:14:10 +0100 Subject: [PATCH] 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. --- diff --git a/CLAUDE.md b/CLAUDE.md index 73b17ac..7bc0812 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -122,7 +122,8 @@ `.github/workflows/ci.yml`, which checks it and makes the GitHub release with a tarball of `raz` and `lib/`; it also checks every push to `main`. `README.md`'s "Versions" gives the commands. v0.3.0 is -the first; v0.9.0, report 2026-10.19, the latest. +the first; v0.9.1, report 2026-10.19, the latest: v0.9.0 with +`tools/` in the tarball, which the website offers from 0.7.1 on. `test/libc` runs its programs over `lib/Sys.raz`, the C one, through a link in its `mods`. A test or example without `.expect` is only diff --git a/Makefile b/Makefile index bb2480b..52a3b2b 100644 --- a/Makefile +++ b/Makefile @@ -100,16 +100,19 @@ -o build/raz.html chromium --headless --no-pdf-header-footer --print-to-pdf=$@ build/raz.html 2>/dev/null -# raz and its library go together under $(PREFIX)/lib/raz; the link -# on PATH works since raz finds lib/ beside its real path. The manual -# pages go where man looks, beside bin. +# raz, its library and its tools go together under $(PREFIX)/lib/raz, +# laid out as in the tarball; the link on PATH works since raz finds +# lib/ beside its real path, and a program's make finds tools/ so. The +# manual pages go where man looks, beside bin. PREFIX = $(HOME)/.local MAN = $(PREFIX)/share/man +TOOLS = Pretty Doc Scan install: raz build/raz-lib.3 rm -rf $(PREFIX)/lib/raz - mkdir -p $(PREFIX)/lib/raz $(PREFIX)/bin $(MAN)/man1 $(MAN)/man3 $(MAN)/man7 + mkdir -p $(PREFIX)/lib/raz/tools $(PREFIX)/bin $(MAN)/man1 $(MAN)/man3 $(MAN)/man7 cp -r raz lib $(PREFIX)/lib/raz + cp $(TOOLS:%=tools/%.raz) $(PREFIX)/lib/raz/tools ln -sf $(PREFIX)/lib/raz/raz $(PREFIX)/bin/raz cp doc/raz.1 $(MAN)/man1/raz.1 cp build/raz-lib.3 $(MAN)/man3/raz-lib.3 @@ -120,7 +123,8 @@ $(MAN)/man7/raz.7 $(MAN)/man7/raz-tutorial.7 # A release's tarball, build/raz-V-linux-x86_64.tar.gz: raz, the lib/ -# it reads beside itself, and the manual pages, V being what raz +# it reads beside itself, the tools a program's make may build (the +# formatter, Doc and the Scan they share) and the manual pages, V being what raz # --version says. It is made of the checkout in TREE, this one unless # given: CI packs the tag it checked out, and site/build.py the latest # tag, which it checks out apart. @@ -132,6 +136,7 @@ d=raz-$$v-linux-x86_64; \ rm -rf build/$$d && mkdir -p build/$$d/man && \ cp -r $(TREE)/raz $(TREE)/lib $(TREE)/LICENSE $(TREE)/README.md build/$$d && \ + mkdir build/$$d/tools && cp $(TOOLS:%=$(TREE)/tools/%.raz) build/$$d/tools && \ cp $(TREE)/doc/raz.1 $(TREE)/doc/raz.7 $(TREE)/doc/raz-tutorial.7 \ $(TREE)/build/raz-lib.3 build/$$d/man && \ tar czf build/$$d.tar.gz -C build $$d && rm -rf build/$$d && \ diff --git a/PLAN.md b/PLAN.md index fbdd774..f9dc24d 100644 --- a/PLAN.md +++ b/PLAN.md @@ -9,7 +9,8 @@ procedures (reports 2026-10.18 and 10.19), is tagged by the owner's word. All before v0.7.1 is approved by the owner; v0.7.1, the manual, v0.8.0, better code again, and v0.9.0 wait for the owner's -review. +review. v0.9.1, by the owner's word, adds `tools/` to the tarball, +for the programs that build with the raz on PATH: rat, rterm, rloc. ## Done: better code for reals diff --git a/README.md b/README.md index eb50451..a646945 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,8 @@ and builds into the repository's root: make # ./raz - make install # ~/.local/bin/raz, its library in ~/.local/lib/raz, + make install # ~/.local/bin/raz, its library and tools in + # ~/.local/lib/raz, as the release's tarball has them, # and its manual pages, raz(1), raz(7), # raz-tutorial(7) and raz-lib(3) make uninstall # removes them again diff --git a/site/content/home.html b/site/content/home.html index 033c37b..da60251 100644 --- a/site/content/home.html +++ b/site/content/home.html @@ -64,7 +64,8 @@

Download

raz @VERSION@ is a tarball for x86-64 Linux with the compiler, raz, -its library, lib/, which it finds beside itself, and the manual +its library, lib/, which it finds beside itself, the formatter +and the documentation tool as sources in tools/, and the manual pages. It needs nothing else installed.

Download raz @VERSION@