summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authorwosch <wosch@FreeBSD.org>1996-07-08 20:18:28 +0000
committerwosch <wosch@FreeBSD.org>1996-07-08 20:18:28 +0000
commit7dbcea9d7a235d9bdfe0a5925903b3d65c4ee84d (patch)
tree479fe6f26b3f476b183f2cafbd3171f0c95c7e11 /libexec
parent5bcd6f63c6d112f1023850c7556c52096067863e (diff)
downloadFreeBSD-src-7dbcea9d7a235d9bdfe0a5925903b3d65c4ee84d.zip
FreeBSD-src-7dbcea9d7a235d9bdfe0a5925903b3d65c4ee84d.tar.gz
add manpage getNAME(1)
Diffstat (limited to 'libexec')
-rw-r--r--libexec/getNAME/Makefile2
-rw-r--r--libexec/getNAME/getNAME.168
-rw-r--r--libexec/getNAME/getNAME.c6
3 files changed, 73 insertions, 3 deletions
diff --git a/libexec/getNAME/Makefile b/libexec/getNAME/Makefile
index a78bc28..3efe56d 100644
--- a/libexec/getNAME/Makefile
+++ b/libexec/getNAME/Makefile
@@ -1,6 +1,6 @@
# @(#)Makefile 8.1 (Berkeley) 6/4/93
+# $Id: $
PROG= getNAME
-NOMAN= noman
.include <bsd.prog.mk>
diff --git a/libexec/getNAME/getNAME.1 b/libexec/getNAME/getNAME.1
new file mode 100644
index 0000000..1f58fc8
--- /dev/null
+++ b/libexec/getNAME/getNAME.1
@@ -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.
diff --git a/libexec/getNAME/getNAME.c b/libexec/getNAME/getNAME.c
index 2ab64b4..cab9bb8 100644
--- a/libexec/getNAME/getNAME.c
+++ b/libexec/getNAME/getNAME.c
@@ -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 @@ again:
void
usage()
{
- (void)fprintf(stderr, "usage: getNAME [-it] file ...\n");
+ (void)fprintf(stderr, "usage: getNAME [-itw] file ...\n");
exit(1);
}
OpenPOWER on IntegriCloud