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 $
26 .\" $DragonFly: src/gnu/usr.bin/man/makewhatis/Attic/makewhatis.1,v 1.2 2003/06/17 04:25:46 dillon Exp $
32 .Nd create whatis database
37 .Op Fl i | Fl indent Ar column
39 .Op Fl n | Fl name Ar name
40 .Op Fl o | Fl outfile Ar file
42 .Op Ar directories ...
45 extracts the name and a short description from unformatted manpages
50 can read gzip'ed manpages.
52 names a directory containing manpage subdirectories
55 Colons are treated as spaces, hence
56 .Ic makewhatis $MANPATH
58 .Ic makewhatis `manpath`
63 Append mode. Don't delete old entries in whatis database. Note:
64 the new database will be sorted without repeated lines and
66 does not check if old entries are valid.
68 Print options and exit.
69 .It Fl i , Fl indent Ar column
70 Justify description strings to
74 Sense locale environment variables for possible localized man subdirectories
75 and process this entries only.
76 .It Fl n , Fl name Ar name
81 .It Fl o , Fl outfile Ar file
85 .Pa dirname/whatis Ns .
89 For every parsed man page write a single char:
91 for an uncompressed page,
93 for a compressed page, and
98 .Ic makewhatis $MANPATH
100 Create whatis database for all directories in your
103 .Ic makewhatis -outfile /tmp/mywhatis /usr/local/man $HOME/man
105 Create whatis database
112 .Pa /usr/local/man/whatis
114 .Pa $HOME/man/whatis Ns .
116 .Ic makewhatis -name windex $HOME/man
118 Create whatis database
122 May be useful for Solaris.
124 .Bl -tag -width /etc/master.passwdxx -compact
127 .It Pa /etc/periodic/weekly/320.whatis
141 .Xr makewhatis.local 8
148 .An Wolfram Schneider ,