1 .\" $Id: makewhatis.8,v 1.7 2022/03/16 23:26:14 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: March 16 2022 $
23 .Nd index UNIX manuals
49 utility extracts keywords from
51 manuals and indexes them in a database for fast retrieval by
59 creates a database in each
63 .Sy man Ar section Li /
69 .Sy cat Ar section Li /
74 Existing databases are replaced.
75 If a directory contains no manual pages, no database is created in that
81 uses the default paths stipulated by
84 The arguments are as follows:
85 .Bl -tag -width "-C file"
87 Use all directories and files found below
90 Specify an alternative configuration
96 Display all files added or removed to the index.
99 also show all keywords added for each file.
101 Merge (remove and re-add)
106 Do not create or modify any database; scan and parse only,
107 and print manual page names and descriptions to standard output.
109 Print warnings about potential problems with manual pages
110 to the standard error output.
112 Quickly build reduced-size databases
113 by reading only the NAME sections of manuals.
114 The resulting databases will usually contain names and descriptions only.
116 Use UTF-8 encoding instead of ASCII for strings stored in the databases.
120 for potential problems.
126 All diagnostic messages are printed to the standard output;
127 the standard error output is not used.
133 If that causes the database to become empty, also delete the database file.
136 If fatal parse errors are encountered while parsing, the offending file
137 is printed to stderr, omitted from the index, and the parse continues
138 with the next input file.
140 .Bl -tag -width MANPATH
142 A colon-separated list of directories to create databases in.
152 A database of manpages relative to the directory of the file.
153 This file is portable across architectures and systems, so long as the
154 manpage hierarchy it indexes does not change.
163 utility exits with one of the following values:
165 .Bl -tag -width Ds -compact
169 Invalid command line arguments were specified.
170 No input files have been read.
172 An operating system error occurred, for example memory exhaustion or an
173 error accessing input files.
176 to exit at once, possibly in the middle of parsing or formatting a file.
177 The output databases are corrupt and should be removed.
187 utility first appeared in
198 argument first appeared in
220 started the Perl version in 2000,
221 and the current version of
224 .An Kristaps Dzonsons Aq Mt kristaps@bsd.lv
226 .An Ingo Schwarze Aq Mt schwarze@openbsd.org .