added tags/depend labels
[unix-history] / usr / src / old / catman / catman.8
CommitLineData
1ed8f332
KM
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.\"
76e09dc2 5.\" @(#)catman.8 6.5 (Berkeley) %G%
1ed8f332 6.\"
2d918cbb 7.TH CATMAN 8 ""
1ed8f332
KM
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
2d918cbb
KM
19] [
20.B \-M
7d68ace3 21.I path
1ed8f332
KM
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
2d918cbb 33.B whatis
1ed8f332
KM
34database.
35.PP
36If there is one parameter not starting with a `\-',
2d918cbb 37it is taken to be a list of manual sections to look in.
1ed8f332
KM
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
2d918cbb
KM
48prevents creations of the
49.B whatis
50database.
1ed8f332
KM
51.TP
52.B \-p
53prints what would be done instead of doing it.
54.TP
55.B \-w
56causes only the
2d918cbb 57.B whatis
1ed8f332
KM
58database to be created.
59No manual reformatting is done.
2d918cbb
KM
60.TP
61.B \-M
7d68ace3
DS
62updates manual pages located in the set of directories specified by
63.I path
2d918cbb 64(/usr/man by default).
7d68ace3
DS
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.
66b2bccb 70.PP
7d68ace3 71If the nroff source file contains only a line of the form `.so manx/yyy.x',
76e09dc2
KM
72a symbolic link is made in the catx directory to the appropriate
73preformatted manual page.
66b2bccb
KM
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
3b439900 95MANUALS = (/usr/man/cat[1-8no] /usr/man/whatis)
66b2bccb
KM
96
97${MANUALS} -> ${MANSLAVES}
98 install -R;
99 notify root;
100
101.fi
1ed8f332 102.SH FILES
2d918cbb
KM
103.nf
104.ta \w'/usr/lib/makewhatis 'u
105/usr/man default manual directory location
1ed8f332 106/usr/man/man?/*.* raw (nroff input) manual sections
1ed8f332 107/usr/man/cat?/*.* preformatted manual pages
2d918cbb
KM
108/usr/man/whatis whatis database
109/usr/lib/makewhatis command script to make whatis database
110.fi
1ed8f332
KM
111.DT
112.SH "SEE ALSO"
66b2bccb 113man(1), cron(8), rdist(1)
1ed8f332
KM
114.SH BUGS
115Acts oddly on nights with full moons.