1*0a6a1f1dSLionel Sambuc.\" $NetBSD: makewhatis.8,v 1.14 2014/03/18 18:20:38 riastradh Exp $ 20c3983b2SBen Gras.\" 30c3983b2SBen Gras.\" Copyright (c) 1997, 2002 The NetBSD Foundation, Inc. 40c3983b2SBen Gras.\" All rights reserved. 50c3983b2SBen Gras.\" 60c3983b2SBen Gras.\" This code is derived from software contributed to The NetBSD Foundation 70c3983b2SBen Gras.\" by Robert Dobbs <banshee@gabriella.resort.com>. 80c3983b2SBen Gras.\" 90c3983b2SBen Gras.\" Redistribution and use in source and binary forms, with or without 100c3983b2SBen Gras.\" modification, are permitted provided that the following conditions 110c3983b2SBen Gras.\" are met: 120c3983b2SBen Gras.\" 1. Redistributions of source code must retain the above copyright 130c3983b2SBen Gras.\" notice, this list of conditions and the following disclaimer. 140c3983b2SBen Gras.\" 2. Redistributions in binary form must reproduce the above copyright 150c3983b2SBen Gras.\" notice, this list of conditions and the following disclaimer in the 160c3983b2SBen Gras.\" documentation and/or other materials provided with the distribution. 170c3983b2SBen Gras.\" 180c3983b2SBen Gras.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 190c3983b2SBen Gras.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 200c3983b2SBen Gras.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 210c3983b2SBen Gras.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 220c3983b2SBen Gras.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 230c3983b2SBen Gras.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 240c3983b2SBen Gras.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 250c3983b2SBen Gras.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 260c3983b2SBen Gras.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 270c3983b2SBen Gras.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 280c3983b2SBen Gras.\" POSSIBILITY OF SUCH DAMAGE. 290c3983b2SBen Gras.\" 300c3983b2SBen Gras.Dd April 3, 2005 310c3983b2SBen Gras.Dt MAKEWHATIS 8 320c3983b2SBen Gras.Os 330c3983b2SBen Gras.Sh NAME 340c3983b2SBen Gras.Nm makewhatis 350c3983b2SBen Gras.Nd create a whatis.db database 360c3983b2SBen Gras.Sh SYNOPSIS 370c3983b2SBen Gras.Nm /usr/libexec/makewhatis 380c3983b2SBen Gras.Op Fl fw 390c3983b2SBen Gras.Op Fl C Ar file 400c3983b2SBen Gras.Op Ar manpath ... 410c3983b2SBen Gras.Sh DESCRIPTION 420c3983b2SBen Gras.Nm 430c3983b2SBen Grasstrips the NAME lines from compiled or raw 440c3983b2SBen Gras.Xr man 1 450c3983b2SBen Graspages and creates a whatis.db database for use in 460c3983b2SBen Gras.Xr apropos 1 , 470c3983b2SBen Gras.Xr whatis 1 , 480c3983b2SBen Grasor with 490c3983b2SBen Gras.Xr man 1 Ns 's 500c3983b2SBen Gras.Fl k 510c3983b2SBen Grasoption. 520c3983b2SBen GrasMan pages compressed with 530c3983b2SBen Gras.Xr compress 1 540c3983b2SBen Grasand 550c3983b2SBen Gras.Xr gzip 1 560c3983b2SBen Grasare uncompressed before processing. 570c3983b2SBen Gras.Pp 580c3983b2SBen GrasWhen 590c3983b2SBen Gras.Ar manpath 600c3983b2SBen Grasis provided multiple times, the resulting database file 610c3983b2SBen Grasis generated in the first directory specified, and contains 620c3983b2SBen Grasentries for all the directories. 630c3983b2SBen Gras.Pp 640c3983b2SBen GrasIf 650c3983b2SBen Gras.Ar manpath 660c3983b2SBen Grasis not provided, 670c3983b2SBen Gras.Nm 680c3983b2SBen Grasparses 690c3983b2SBen Gras.Pa /etc/man.conf 700c3983b2SBen Grasand regenerates the whatis database files specified there. 710c3983b2SBen GrasEach database file is assumed to reside in the root of the appropriate 720c3983b2SBen Grasman page hierarchy. 730c3983b2SBen Gras.Pp 740c3983b2SBen GrasThe options are as follows: 750c3983b2SBen Gras.Bl -tag -width XCXfileXX 760c3983b2SBen Gras.It Fl C Ar file 770c3983b2SBen GrasUse 780c3983b2SBen Gras.Ar file 790c3983b2SBen Gras(in 800c3983b2SBen Gras.Xr man.conf 5 810c3983b2SBen Grasformat) as configuration file instead of the default, 820c3983b2SBen Gras.Pa /etc/man.conf . 830c3983b2SBen Gras.It Fl f 840c3983b2SBen GrasDon't spawn child processes to generate the individual database files, 850c3983b2SBen Grasbut do all the work synchronously in the foreground. 860c3983b2SBen Gras.It Fl w 870c3983b2SBen GrasPrint warnings about input files we don't like. 880c3983b2SBen Gras.El 890c3983b2SBen Gras.Sh FILES 900c3983b2SBen Gras.Bl -tag -compact -width /etc/man.conf1 910c3983b2SBen Gras.It Pa whatis.db 920c3983b2SBen Grasname of the whatis database 930c3983b2SBen Gras.It Pa /etc/man.conf 940c3983b2SBen Gras.Xr man 1 950c3983b2SBen Grasconfiguration file, used to get the location of the whatis databases when 960c3983b2SBen Gras.Nm 970c3983b2SBen Grasis called without arguments 980c3983b2SBen Gras.El 990c3983b2SBen Gras.Sh SEE ALSO 1000c3983b2SBen Gras.Xr apropos 1 , 1010c3983b2SBen Gras.Xr man 1 , 1020c3983b2SBen Gras.Xr whatis 1 , 1030c3983b2SBen Gras.Xr man.conf 5 1040c3983b2SBen Gras.Sh HISTORY 1050c3983b2SBen Gras.An -nosplit 1060c3983b2SBen Gras.Nm 1070c3983b2SBen Grasfirst appeared in 1080c3983b2SBen Gras.Nx 1.0 , 1090c3983b2SBen Grasas a shell script written by 11084d9c625SLionel Sambuc.An J.T. Conklin Aq Mt jtc@NetBSD.org 1110c3983b2SBen Grasand 11284d9c625SLionel Sambuc.An Thorsten Frueauf Aq Mt frueauf@ira.uka.de . 1130c3983b2SBen GrasFurther work was done by 1140c3983b2SBen Gras.An Matthew Green , 1150c3983b2SBen Gras.An Luke Mewburn , 1160c3983b2SBen Grasand 1170c3983b2SBen Gras.An Chris Demetriou . 1180c3983b2SBen Gras.Pp 1190c3983b2SBen Gras.An Matthias Scheler 1200c3983b2SBen Grashas reimplemented 1210c3983b2SBen Gras.Nm 1220c3983b2SBen Grasin C in 1230c3983b2SBen Gras.Nx 1.5 . 1240c3983b2SBen Gras.Sh AUTHORS 12584d9c625SLionel Sambuc.An Matthias Scheler Aq Mt tron@NetBSD.org 126