add manpage getNAME(1)

This commit is contained in:
Wolfram Schneider 1996-07-08 20:18:28 +00:00
parent bfab15f069
commit e3908fd51f
4 changed files with 76 additions and 5 deletions

View File

@ -29,7 +29,7 @@
.\" makewhatis -- update the whatis database in the man directories.
.\"
.\"
.\" $Id: makewhatis.1,v 1.3 1996/04/08 04:17:48 mpp Exp $
.\" $Id: makewhatis.1,v 1.4 1996/05/22 00:57:39 wosch Exp $
.Dd Jan, 12, 1995
@ -148,10 +148,11 @@ every week
.Sh SEE ALSO
.Xr apropos 1 ,
.Xr catman 1 ,
.Xr sort 1 ,
.Xr getNAME 1 ,
.Xr makewhatis.local 1 ,
.Xr man 1 ,
.Xr manpath 1 ,
.Xr sort 1 ,
.Xr uniq 1 ,
.Xr whatis 1 .

View File

@ -1,6 +1,6 @@
# @(#)Makefile 8.1 (Berkeley) 6/4/93
# $Id: $
PROG= getNAME
NOMAN= noman
.include <bsd.prog.mk>

68
libexec/getNAME/getNAME.1 Normal file
View File

@ -0,0 +1,68 @@
.\"
.\" Copyright (C) July 1996, Berlin.
.\" Wolfram Schneider <wosch@freebsd.org>. 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.
.\" 3. Neither the name of the author nor the names of any co-contributors
.\" may be used to endorse or promote products derived from this software
.\" without specific prior written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY Wolfram Schneider ``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 [your name] OR CONTRIBUTORS 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.
.\"
.\" $Id: $
.Dd July 8, 1996
.Dt getNAME 1
.Os FreeBSD 2.2
.Sh NAME
.Nm getNAME
.Nd get name sections from manual pages
.Sh SYNOPSIS
.Nm /usr/libexec/getNAME
.Op Fl itw
.Ar files ...
.Sh DESCRIPTION
The
.Nm
utility
get name sections from manual pages. Without options
.Nm
building
.Xr apropos 1
database entries.
.Pp
The options are as follows:
.Bl -tag -width Ds
.It Fl i
for building intro entries.
.It Fl t
for building toc.
.It Fl w
print type of manual page (OLD, NEW, UNKNOWN).
.El
.\" .Sh BUGS
.Sh SEE ALSO
.Xr man 1 ,
.Xr makewhatis 1 ,
.Xr apropos 1 .
.Sh HISTORY
The manual page for
.Nm
command appeared in FreeBSD 2.2.

View File

@ -29,6 +29,9 @@
* 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.
*
* $Id: $
*
*/
#ifndef lint
@ -81,7 +84,6 @@ main(argc, argv)
case 'w':
typeflag = 1;
break;
case '?':
default:
usage();
}
@ -334,6 +336,6 @@ dorefname(name)
void
usage()
{
(void)fprintf(stderr, "usage: getNAME [-it] file ...\n");
(void)fprintf(stderr, "usage: getNAME [-itw] file ...\n");
exit(1);
}