xref: /netbsd-src/libexec/getNAME/getNAME.8 (revision c2b95373bf0fdf612ee0f8b5f5711bbc8c3d8b87)
1*c2b95373Smrg.\"	$NetBSD: getNAME.8,v 1.12 2008/05/29 14:51:25 mrg Exp $
2ef53ad13Smrg.\"
3ef53ad13Smrg.\" Copyright (c) 1997 Matthew R. Green
4ef53ad13Smrg.\" All rights reserved.
5ef53ad13Smrg.\"
6ef53ad13Smrg.\" Redistribution and use in source and binary forms, with or without
7ef53ad13Smrg.\" modification, are permitted provided that the following conditions
8ef53ad13Smrg.\" are met:
9ef53ad13Smrg.\" 1. Redistributions of source code must retain the above copyright
10ef53ad13Smrg.\"    notice, this list of conditions and the following disclaimer.
11ef53ad13Smrg.\" 2. Redistributions in binary form must reproduce the above copyright
12ef53ad13Smrg.\"    notice, this list of conditions and the following disclaimer in the
13ef53ad13Smrg.\"    documentation and/or other materials provided with the distribution.
14ef53ad13Smrg.\"
15ef53ad13Smrg.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16ef53ad13Smrg.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17ef53ad13Smrg.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18ef53ad13Smrg.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19ef53ad13Smrg.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
20ef53ad13Smrg.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21ef53ad13Smrg.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
22ef53ad13Smrg.\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
23ef53ad13Smrg.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24ef53ad13Smrg.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25ef53ad13Smrg.\" SUCH DAMAGE.
26ef53ad13Smrg.\"
27ef53ad13Smrg.Dd October 31, 1997
28ef53ad13Smrg.Dt GETNAME 8
29f1247650Sgarbled.Os
30ef53ad13Smrg.Sh NAME
31ef53ad13Smrg.Nm getNAME
3282d7115cSenami.Nd "get NAME sections from manual source for whatis/apropos data base"
33ef53ad13Smrg.Sh SYNOPSIS
34990562bfSwiz.Nm
35f7ab9656Schristos.Op Fl itvw
36ef53ad13Smrg.Ar path Op Ar path ...
37ef53ad13Smrg.Sh DESCRIPTION
38ef53ad13SmrgThe
39ef53ad13Smrg.Nm
408e4d4f76Smikelutility looks inside manual page sources to find the name of the page.
41ef53ad13SmrgIt can be used to create a table of contents, report the style of manual,
42d6285bbfSwizor to create an introductory manual page.
43d6285bbfSwizBy default,
44ef53ad13Smrg.Nm
45ef53ad13Smrgreturns data for use in an
46ef53ad13Smrg.Xr apropos 1
47ef53ad13Smrgdatabase.
48ef53ad13Smrg.Nm
4916510c2bSjdolecekis designed to be called from manual grovelling tools, not to be used directly.
5016510c2bSjdolecek.Pp
5116510c2bSjdolecekHistorically,
52b0b8aac6Slukem.Xr makewhatis 8
5316510c2bSjdolecekused to use
5416510c2bSjdolecek.Nm
5516510c2bSjdolecekto get manpage names, but that's no longer the case.
56ef53ad13Smrg.Sh OPTIONS
57ef53ad13SmrgThe following options are available:
58b0b8aac6Slukem.Bl -tag -width Ds
59ef53ad13Smrg.It Fl i
60d6285bbfSwizPrint information useful in creating an introduction manual.
61d6285bbfSwizSee
62ef53ad13Smrg.Xr intro 1 ,
63ef53ad13Smrg.Xr intro 2 ,
64ef53ad13Smrgetc. for examples.
65ef53ad13Smrg.It Fl t
661b5e3d16SjdolecekPrint information useful for creating a table of contents.
67f7ab9656Schristos.It Fl v
68f7ab9656SchristosComplain about incorrectly formatted man pages.
69ef53ad13Smrg.It Fl w
701b5e3d16SjdolecekPrint information whether the manpage uses traditional man
71b0b8aac6Slukem.Pq Dq OLD ,
72ef53ad13Smrgnew mandoc
73b0b8aac6Slukem.Pq Dq NEW ,
74ef53ad13Smrgor some unknown
75b0b8aac6Slukem.Pq Dq UNKNOWN
761b5e3d16Sjdolecekmacros.
77ef53ad13Smrg.El
78e705d080Swiz.Sh SEE ALSO
79e705d080Swiz.Xr man 1 ,
80e705d080Swiz.Xr catman 8 ,
81e705d080Swiz.Xr makewhatis 8
82ef53ad13Smrg.Sh HISTORY
83ef53ad13SmrgThe
84ef53ad13Smrg.Nm
858e4d4f76Smikelcommand first appeared in
86e705d080Swiz.Bx 2.0 .
87ef53ad13Smrg.Sh BUGS
88ef53ad13SmrgIt would be nice if
89ef53ad13Smrg.Nm
908e4d4f76Smikelcould deal with compressed and/or preformatted manual pages.
91f7ab9656SchristosLooks for .S[Hh] NAME for consistency checking, but that breaks man pages
92f7ab9656Schristosin other languages.
93