1 .\" $Id: makewhatis.8,v 1.6 2017/05/17 22:27:12 schwarze Exp $
3 .\" Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
4 .\" Copyright (c) 2011, 2012, 2014, 2017 Ingo Schwarze <schwarze@openbsd.org>
6 .\" Permission to use, copy, modify, and distribute this software for any
7 .\" purpose with or without fee is hereby granted, provided that the above
8 .\" copyright notice and this permission notice appear in all copies.
10 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 .Dd $Mdocdate: May 17 2017 $
23 .Nd index UNIX manuals
49 utility extracts keywords from
51 manuals and indexes them in a database for fast retrieval by
61 creates a database in each
65 .Sy man Ar section Li /
71 .Sy cat Ar section Li /
76 Existing databases are replaced.
77 If a directory contains no manual pages, no database is created in that
83 uses the default paths stipulated by
86 The arguments are as follows:
87 .Bl -tag -width "-C file"
89 Use all directories and files found below
92 Specify an alternative configuration
98 Display all files added or removed to the index.
101 also show all keywords added for each file.
103 Merge (remove and re-add)
108 Do not create or modify any database; scan and parse only,
109 and print manual page names and descriptions to standard output.
111 Print warnings about potential problems with manual pages
112 to the standard error output.
114 Quickly build reduced-size databases
115 by reading only the NAME sections of manuals.
116 The resulting databases will usually contain names and descriptions only.
118 Use UTF-8 encoding instead of ASCII for strings stored in the databases.
122 for potential problems.
128 All diagnostic messages are printed to the standard output;
129 the standard error output is not used.
135 If that causes the database to become empty, also delete the database file.
138 If fatal parse errors are encountered while parsing, the offending file
139 is printed to stderr, omitted from the index, and the parse continues
140 with the next input file.
142 .Bl -tag -width MANPATH
144 A colon-separated list of directories to create databases in.
154 A database of manpages relative to the directory of the file.
155 This file is portable across architectures and systems, so long as the
156 manpage hierarchy it indexes does not change.
165 utility exits with one of the following values:
167 .Bl -tag -width Ds -compact
171 Invalid command line arguments were specified.
172 No input files have been read.
174 An operating system error occurred, for example memory exhaustion or an
175 error accessing input files.
178 to exit at once, possibly in the middle of parsing or formatting a file.
179 The output databases are corrupt and should be removed.
189 utility first appeared in
200 argument first appeared in
222 started the Perl version in 2000,
223 and the current version of
226 .An Kristaps Dzonsons Aq Mt kristaps@bsd.lv
228 .An Ingo Schwarze Aq Mt schwarze@openbsd.org .