2008-05-29 18:51:25 +04:00
|
|
|
.\" $NetBSD: getNAME.8,v 1.12 2008/05/29 14:51:25 mrg Exp $
|
1997-11-01 18:03:51 +03:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 1997 Matthew R. Green
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
|
|
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
|
|
.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
|
|
.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
|
|
.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
|
|
.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
|
|
.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
|
|
.\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
|
|
.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
.Dd October 31, 1997
|
|
|
|
.Dt GETNAME 8
|
1999-03-22 21:25:43 +03:00
|
|
|
.Os
|
1997-11-01 18:03:51 +03:00
|
|
|
.Sh NAME
|
|
|
|
.Nm getNAME
|
1999-11-19 04:12:39 +03:00
|
|
|
.Nd "get NAME sections from manual source for whatis/apropos data base"
|
1997-11-01 18:03:51 +03:00
|
|
|
.Sh SYNOPSIS
|
2003-02-25 13:34:36 +03:00
|
|
|
.Nm
|
1998-05-22 03:21:48 +04:00
|
|
|
.Op Fl itvw
|
1997-11-01 18:03:51 +03:00
|
|
|
.Ar path Op Ar path ...
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
1997-12-04 09:41:42 +03:00
|
|
|
utility looks inside manual page sources to find the name of the page.
|
1997-11-01 18:03:51 +03:00
|
|
|
It can be used to create a table of contents, report the style of manual,
|
2002-09-29 18:05:52 +04:00
|
|
|
or to create an introductory manual page.
|
|
|
|
By default,
|
1997-11-01 18:03:51 +03:00
|
|
|
.Nm
|
|
|
|
returns data for use in an
|
|
|
|
.Xr apropos 1
|
|
|
|
database.
|
|
|
|
.Nm
|
2002-03-08 23:40:00 +03:00
|
|
|
is designed to be called from manual grovelling tools, not to be used directly.
|
|
|
|
.Pp
|
|
|
|
Historically,
|
1997-11-02 03:23:36 +03:00
|
|
|
.Xr makewhatis 8
|
2002-03-08 23:40:00 +03:00
|
|
|
used to use
|
|
|
|
.Nm
|
|
|
|
to get manpage names, but that's no longer the case.
|
1997-11-01 18:03:51 +03:00
|
|
|
.Sh OPTIONS
|
|
|
|
The following options are available:
|
2002-01-15 05:21:13 +03:00
|
|
|
.Bl -tag -width Ds
|
1997-11-01 18:03:51 +03:00
|
|
|
.It Fl i
|
2002-09-29 18:05:52 +04:00
|
|
|
Print information useful in creating an introduction manual.
|
|
|
|
See
|
1997-11-01 18:03:51 +03:00
|
|
|
.Xr intro 1 ,
|
|
|
|
.Xr intro 2 ,
|
|
|
|
etc. for examples.
|
|
|
|
.It Fl t
|
2002-03-08 23:59:08 +03:00
|
|
|
Print information useful for creating a table of contents.
|
1998-05-22 03:21:48 +04:00
|
|
|
.It Fl v
|
|
|
|
Complain about incorrectly formatted man pages.
|
1997-11-01 18:03:51 +03:00
|
|
|
.It Fl w
|
2002-03-08 23:59:08 +03:00
|
|
|
Print information whether the manpage uses traditional man
|
1997-11-02 03:23:36 +03:00
|
|
|
.Pq Dq OLD ,
|
1997-11-01 18:03:51 +03:00
|
|
|
new mandoc
|
1997-11-02 03:23:36 +03:00
|
|
|
.Pq Dq NEW ,
|
1997-11-01 18:03:51 +03:00
|
|
|
or some unknown
|
1997-11-02 03:23:36 +03:00
|
|
|
.Pq Dq UNKNOWN
|
2002-03-08 23:59:08 +03:00
|
|
|
macros.
|
1997-11-01 18:03:51 +03:00
|
|
|
.El
|
2002-01-15 05:21:13 +03:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr man 1 ,
|
|
|
|
.Xr catman 8 ,
|
|
|
|
.Xr makewhatis 8
|
1997-11-01 18:03:51 +03:00
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
1997-12-04 09:41:42 +03:00
|
|
|
command first appeared in
|
2002-01-15 05:21:13 +03:00
|
|
|
.Bx 2.0 .
|
1997-11-01 18:03:51 +03:00
|
|
|
.Sh BUGS
|
|
|
|
It would be nice if
|
|
|
|
.Nm
|
1997-12-04 09:41:42 +03:00
|
|
|
could deal with compressed and/or preformatted manual pages.
|
1998-05-22 03:21:48 +04:00
|
|
|
Looks for .S[Hh] NAME for consistency checking, but that breaks man pages
|
|
|
|
in other languages.
|