modern syntax for asgops & inits cause Donn's latest ccom rejects the old.
[unix-history] / usr / src / old / catman / catman.8
... / ...
CommitLineData
1.\" Copyright (c) 1980 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
5.\" @(#)catman.8 6.5 (Berkeley) %G%
6.\"
7.TH CATMAN 8 ""
8.UC 4
9.SH NAME
10catman \- create the cat files for the manual
11.SH SYNOPSIS
12.B /etc/catman
13[
14.B \-p
15] [
16.B \-n
17] [
18.B \-w
19] [
20.B \-M
21.I path
22]
23[ sections ]
24.SH DESCRIPTION
25.I Catman
26creates the preformatted versions of the on-line manual from the nroff
27input files.
28Each manual page is examined and those whose preformatted versions are
29missing or out of date are recreated.
30If any changes are made,
31.I catman
32will recreate the
33.B whatis
34database.
35.PP
36If there is one parameter not starting with a `\-',
37it is taken to be a list of manual sections to look in.
38For example
39.IP
40.B catman 123
41.LP
42will cause the updating to only happen to manual sections
431, 2, and 3.
44.PP
45Options:
46.TP
47.B \-n
48prevents creations of the
49.B whatis
50database.
51.TP
52.B \-p
53prints what would be done instead of doing it.
54.TP
55.B \-w
56causes only the
57.B whatis
58database to be created.
59No manual reformatting is done.
60.TP
61.B \-M
62updates manual pages located in the set of directories specified by
63.I path
64(/usr/man by default).
65.I Path
66has the form of a colon (`:') separated list of directory names,
67for example `/usr/local/man:/usr/man'.
68If the environment variable `MANPATH' is set,
69its value is used for the default path.
70.PP
71If the nroff source file contains only a line of the form `.so manx/yyy.x',
72a symbolic link is made in the catx directory to the appropriate
73preformatted manual page.
74This feature allows easy distribution of the preformatted manual pages
75among a group of associated machines with
76.I rdist(1).
77The nroff sources need not be distributed to all machines,
78thus saving the associated disk space.
79As an example, consider a local network with 5 machines,
80called mach1 through mach5.
81Suppose mach3 has the manual page nroff sources.
82Every night, mach3 runs
83.I catman
84via
85.I cron(8)
86and later runs
87.I rdist
88with a distfile that looks like:
89.IP
90.nf
91.ta \w'${MANUAL'u
92
93MANSLAVES = ( mach1 mach2 mach4 mach5 )
94
95MANUALS = (/usr/man/cat[1-8no] /usr/man/whatis)
96
97${MANUALS} -> ${MANSLAVES}
98 install -R;
99 notify root;
100
101.fi
102.SH FILES
103.nf
104.ta \w'/usr/lib/makewhatis 'u
105/usr/man default manual directory location
106/usr/man/man?/*.* raw (nroff input) manual sections
107/usr/man/cat?/*.* preformatted manual pages
108/usr/man/whatis whatis database
109/usr/lib/makewhatis command script to make whatis database
110.fi
111.DT
112.SH "SEE ALSO"
113man(1), cron(8), rdist(1)
114.SH BUGS
115Acts oddly on nights with full moons.