1.\" $NetBSD: getNAME.8,v 1.9 2002/03/08 20:59:08 jdolecek Exp $ 2.\" 3.\" Copyright (c) 1997 Matthew R. Green 4.\" All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: 9.\" 1. Redistributions of source code must retain the above copyright 10.\" notice, this list of conditions and the following disclaimer. 11.\" 2. Redistributions in binary form must reproduce the above copyright 12.\" notice, this list of conditions and the following disclaimer in the 13.\" documentation and/or other materials provided with the distribution. 14.\" 3. The name of the author may not be used to endorse or promote products 15.\" derived from this software without specific prior written permission. 16.\" 17.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 18.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 19.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 20.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 22.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 24.\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 25.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27.\" SUCH DAMAGE. 28.\" 29.Dd October 31, 1997 30.Dt GETNAME 8 31.Os 32.Sh NAME 33.Nm getNAME 34.Nd "get NAME sections from manual source for whatis/apropos data base" 35.Sh SYNOPSIS 36.Nm "" 37.Op Fl itvw 38.Ar path Op Ar path ... 39.Sh DESCRIPTION 40The 41.Nm 42utility looks inside manual page sources to find the name of the page. 43It can be used to create a table of contents, report the style of manual, 44or to create an introductory manual page. By default, 45.Nm 46returns data for use in an 47.Xr apropos 1 48database. 49.Nm 50is designed to be called from manual grovelling tools, not to be used directly. 51.Pp 52Historically, 53.Xr makewhatis 8 54used to use 55.Nm 56to get manpage names, but that's no longer the case. 57.Sh OPTIONS 58The following options are available: 59.Bl -tag -width Ds 60.It Fl i 61Print information useful in creating an introduction manual. See 62.Xr intro 1 , 63.Xr intro 2 , 64etc. for examples. 65.It Fl t 66Print information useful for creating a table of contents. 67.It Fl v 68Complain about incorrectly formatted man pages. 69.It Fl w 70Print information whether the manpage uses traditional man 71.Pq Dq OLD , 72new mandoc 73.Pq Dq NEW , 74or some unknown 75.Pq Dq UNKNOWN 76macros. 77.El 78.Sh SEE ALSO 79.Xr man 1 , 80.Xr catman 8 , 81.Xr makewhatis 8 82.Sh HISTORY 83The 84.Nm 85command first appeared in 86.Bx 2.0 . 87.Sh BUGS 88It would be nice if 89.Nm 90could deal with compressed and/or preformatted manual pages. 91Looks for .S[Hh] NAME for consistency checking, but that breaks man pages 92in other languages. 93