raz / commit ebfe9e19

commit
ebfe9e19b4cd997b5fdf1817cedeaef918a0753f
author
Luis <42945842+ldiaz94@users.noreply.github.com>
date
parent
fbf1697e
The manual pages together

raz(1) points to raz-lib(3), raz-tutorial(7) and raz(7); make install
puts all four where man looks, and make uninstall takes them away;
README and the guide to the compiler name them. The desktop guide
has raz among our own tools.

patch · log

5 files changed, +32 -14

Makefile (history) modified +9 -5

@@ -97,17 +97,21 @@
9797
9898 # raz and its library go together under $(PREFIX)/lib/raz; the link
9999 # on PATH works since raz finds lib/ beside its real path. The manual
100-# page goes where man looks, beside bin.
100+# pages go where man looks, beside bin.
101101 PREFIX = $(HOME)/.local
102+MAN = $(PREFIX)/share/man
102103
103-install: raz
104+install: raz build/raz-lib.3
104105 rm -rf $(PREFIX)/lib/raz
105- mkdir -p $(PREFIX)/lib/raz $(PREFIX)/bin $(PREFIX)/share/man/man1
106+ mkdir -p $(PREFIX)/lib/raz $(PREFIX)/bin $(MAN)/man1 $(MAN)/man3 $(MAN)/man7
106107 cp -r raz lib $(PREFIX)/lib/raz
107108 ln -sf $(PREFIX)/lib/raz/raz $(PREFIX)/bin/raz
108- cp doc/raz.1 $(PREFIX)/share/man/man1/raz.1
109+ cp doc/raz.1 $(MAN)/man1/raz.1
110+ cp build/raz-lib.3 $(MAN)/man3/raz-lib.3
111+ cp doc/raz.7 doc/raz-tutorial.7 $(MAN)/man7
109112
110113 uninstall:
111- rm -rf $(PREFIX)/lib/raz $(PREFIX)/bin/raz $(PREFIX)/share/man/man1/raz.1
114+ rm -rf $(PREFIX)/lib/raz $(PREFIX)/bin/raz $(MAN)/man1/raz.1 $(MAN)/man3/raz-lib.3 \
115+ $(MAN)/man7/raz.7 $(MAN)/man7/raz-tutorial.7
112116
113117 .PHONY: units tests check gdb bench stress fmt loc man pdf clean install uninstall

PLAN.md (history) modified +1 -1

@@ -44,7 +44,7 @@
4444 their order, the built-in procedures, the statements, what is
4545 checked, and the limits; each pointing to the report's section for
4646 the whole of it. About 400 lines.
47-4. **`raz(1)` again, and the pages together.** The command's page
47+4. Done: **`raz(1)` again, and the pages together.** The command's page
4848 points into the others; `make install` installs all four, and
4949 `make uninstall` removes them; README and `doc/compiler.md` name
5050 them; the desktop guide gets an entry for raz as one of our own

README.md (history) modified +6 -2

@@ -35,6 +35,7 @@
3535 |---|---|
3636 | `doc/raz.md` | The language report: the definition of raz |
3737 | `doc/compiler.md` | A guide to reading the compiler, file by file |
38+| `doc/raz.1`, `doc/raz.7`, `doc/raz-tutorial.7` | The manual pages: the command, the language at a glance, a tour; `make man` makes the library's, raz-lib(3), from `lib/` |
3839 | `src/` | The compiler, in Free Pascal |
3940 | `lib/` | The library, in raz; the compiler finds it beside itself |
4041 | `examples/` | Small programs, each with the output it should give |
@@ -52,7 +53,8 @@
5253
5354 make # ./raz
5455 make install # ~/.local/bin/raz, its library in ~/.local/lib/raz,
55- # and its manual page, raz(1)
56+ # and its manual pages, raz(1), raz(7),
57+ # raz-tutorial(7) and raz-lib(3)
5658 make uninstall # removes them again
5759
5860 Both take `PREFIX=/usr/local` (or another place) instead of `~/.local`.
@@ -76,7 +78,9 @@
7678 raz -h
7779 raz --version
7880
79-`raz -h` says the options, and `man raz` says more.
81+`raz -h` says the options, and `man raz` says more. `man
82+raz-tutorial` is a tour of the language, `man 7 raz` the language at
83+a glance, and `man raz-lib` the library, made from its sources.
8084
8185 `raz Main.raz` compiles module `Main` and every module it imports, and
8286 writes the executable `Main`. A module `Name` lives in `Name.raz`, found

doc/compiler.md (history) modified +3 -1

@@ -4,7 +4,9 @@
44 This guide walks through them in the order they are best read: from the
55 characters of a source file to the bytes of an executable. It assumes
66 you know the language from `doc/raz.md`, and enough x86-64 to read a
7-disassembly.
7+disassembly. The manual pages say the rest: `raz(1)` the command,
8+`raz-tutorial(7)` and `raz(7)` the language, and `raz-lib(3)` the
9+library, made from `lib/` by `tools/Doc.raz`.
810
911 | File | Lines | Code | What |
1012 |---|---|---|---|

doc/raz.1 (history) modified +13 -5

@@ -40,7 +40,9 @@
4040 .Pa lib/
4141 beside the
4242 .Nm
43-executable.
43+executable, whose modules
44+.Xr raz-lib 3
45+says.
4446 A program has one module of each name: a module found in two of these
4547 places is an error, unless one of the files is a symbolic link to the
4648 other, which chooses it.
@@ -148,9 +150,15 @@
148150 raz -o prog Prog.raz && RAZ_PROFILE=1 ./prog
149151 .Ed
150152 .Sh SEE ALSO
151-.Xr gdb 1 ;
152-the language,
153+.Xr raz-lib 3 ,
154+the library;
155+.Xr raz-tutorial 7 ,
156+a tour of the language;
157+.Xr raz 7 ,
158+the language at a glance;
159+.Xr gdb 1 .
160+The report,
153161 .Pa doc/raz.md ,
154-and the guide to the compiler,
162+defines the language, and the guide to the compiler,
155163 .Pa doc/compiler.md ,
156-in raz's sources.
164+walks through its sources.