1 .\" Copyright (c) 1994-1996 Wolfram Schneider <wosch@FreeBSD.org>. Berlin.
2 .\" All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
13 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 .\" $FreeBSD: src/gnu/usr.bin/man/makewhatis/makewhatis.1,v 1.14.2.6 2001/08/16 10:14:57 ru Exp $
31 .Nd create whatis database
36 .Op Fl i | Fl indent Ar column
38 .Op Fl n | Fl name Ar name
39 .Op Fl o | Fl outfile Ar file
41 .Op Ar directories ...
44 extracts the name and a short description from unformatted manpages
49 can read gzip'ed manpages.
51 names a directory containing manpage subdirectories
54 Colons are treated as spaces, hence
55 .Ic makewhatis $MANPATH
57 .Ic makewhatis `manpath`
62 Append mode. Don't delete old entries in whatis database. Note:
63 the new database will be sorted without repeated lines and
65 does not check if old entries are valid.
67 Print options and exit.
68 .It Fl i , Fl indent Ar column
69 Justify description strings to
73 Sense locale environment variables for possible localized man subdirectories
74 and process this entries only.
75 .It Fl n , Fl name Ar name
80 .It Fl o , Fl outfile Ar file
84 .Pa dirname/whatis Ns .
88 For every parsed man page write a single char:
90 for an uncompressed page,
92 for a compressed page, and
97 .Ic makewhatis $MANPATH
99 Create whatis database for all directories in your
102 .Ic makewhatis -outfile /tmp/mywhatis /usr/local/man $HOME/man
104 Create whatis database
111 .Pa /usr/local/man/whatis
113 .Pa $HOME/man/whatis Ns .
115 .Ic makewhatis -name windex $HOME/man
117 Create whatis database
121 May be useful for Solaris.
123 .Bl -tag -width /etc/master.passwdxx -compact
126 .It Pa /etc/periodic/weekly/320.whatis
140 .Xr makewhatis.local 8
147 .An Wolfram Schneider ,