summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2015-02-16 16:18:02 +0000
committerschwarze <schwarze@openbsd.org>2015-02-16 16:18:02 +0000
commitdde2525dfe4953b279032acb76f550fdebd0af44 (patch)
tree3e25d690d37b3cb4a0f11c19e5f670f204b0d5af
parentallow Arduino Leonardo to attach to umodem(4), from Gregor Best (diff)
downloadwireguard-openbsd-dde2525dfe4953b279032acb76f550fdebd0af44.tar.xz
wireguard-openbsd-dde2525dfe4953b279032acb76f550fdebd0af44.zip
Delete the -V option. It serves no purpose but keeps confusing people.
-rw-r--r--usr.bin/mandoc/Makefile3
-rw-r--r--usr.bin/mandoc/apropos.18
-rw-r--r--usr.bin/mandoc/main.c22
-rw-r--r--usr.bin/mandoc/man.110
-rw-r--r--usr.bin/mandoc/mandoc.18
5 files changed, 16 insertions, 35 deletions
diff --git a/usr.bin/mandoc/Makefile b/usr.bin/mandoc/Makefile
index 04585dff27e..845ec56b26b 100644
--- a/usr.bin/mandoc/Makefile
+++ b/usr.bin/mandoc/Makefile
@@ -1,8 +1,7 @@
-# $OpenBSD: Makefile,v 1.90 2015/01/16 01:58:18 schwarze Exp $
+# $OpenBSD: Makefile,v 1.91 2015/02/16 16:18:02 schwarze Exp $
.include <bsd.own.mk>
-CFLAGS += -DVERSION=\"1.13.2\"
CFLAGS += -W -Wall -Wstrict-prototypes -Wno-unused-parameter
DPADD += ${LIBUTIL}
LDADD += -lsqlite3 -lutil
diff --git a/usr.bin/mandoc/apropos.1 b/usr.bin/mandoc/apropos.1
index 294db4c739e..d56165af38d 100644
--- a/usr.bin/mandoc/apropos.1
+++ b/usr.bin/mandoc/apropos.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: apropos.1,v 1.28 2014/10/30 00:05:02 schwarze Exp $
+.\" $OpenBSD: apropos.1,v 1.29 2015/02/16 16:18:02 schwarze Exp $
.\"
.\" Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
.\" Copyright (c) 2011, 2012, 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -15,7 +15,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: October 30 2014 $
+.Dd $Mdocdate: February 16 2015 $
.Dt APROPOS 1
.Os
.Sh NAME
@@ -24,7 +24,7 @@
.Nd search manual page databases
.Sh SYNOPSIS
.Nm
-.Op Fl acfhklVw
+.Op Fl acfhklw
.Op Fl C Ar file
.Op Fl M Ar path
.Op Fl m Ar path
@@ -162,8 +162,6 @@ By default, pages from all sections are shown.
See
.Xr man 1
for a listing of sections.
-.It Fl V
-Print version and exit.
.It Fl w
Instead of showing title lines, show the pathnames of the matching
manual pages, just like
diff --git a/usr.bin/mandoc/main.c b/usr.bin/mandoc/main.c
index 327bab6d606..da73c2a64dc 100644
--- a/usr.bin/mandoc/main.c
+++ b/usr.bin/mandoc/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.125 2015/02/10 08:05:07 schwarze Exp $ */
+/* $OpenBSD: main.c,v 1.126 2015/02/16 16:18:02 schwarze Exp $ */
/*
* Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2012, 2014, 2015 Ingo Schwarze <schwarze@openbsd.org>
@@ -94,7 +94,6 @@ static enum mandoclevel passthrough(const char *, int, int);
static void spawn_pager(void);
static int toptions(struct curparse *, char *);
static void usage(enum argmode) __attribute__((noreturn));
-static void version(void) __attribute__((noreturn));
static int woptions(struct curparse *, char *);
static const int sec_prios[] = {1, 4, 5, 8, 6, 3, 7, 2, 9};
@@ -247,9 +246,6 @@ main(int argc, char *argv[])
case 'w':
outmode = OUTMODE_FLN;
break;
- case 'V':
- version();
- /* NOTREACHED */
default:
show_usage = 1;
break;
@@ -465,37 +461,29 @@ out:
}
static void
-version(void)
-{
-
- printf("mandoc %s\n", VERSION);
- exit((int)MANDOCLEVEL_OK);
-}
-
-static void
usage(enum argmode argmode)
{
switch (argmode) {
case ARG_FILE:
- fputs("usage: mandoc [-acfhklV] [-Ios=name] "
+ fputs("usage: mandoc [-acfhkl] [-Ios=name] "
"[-Kencoding] [-mformat] [-Ooption]\n"
"\t [-Toutput] [-Wlevel] [file ...]\n", stderr);
break;
case ARG_NAME:
- fputs("usage: man [-acfhklVw] [-C file] [-I os=name] "
+ fputs("usage: man [-acfhklw] [-C file] [-I os=name] "
"[-K encoding] [-M path] [-m path]\n"
"\t [-O option=value] [-S subsection] [-s section] "
"[-T output] [-W level]\n"
"\t [section] name ...\n", stderr);
break;
case ARG_WORD:
- fputs("usage: whatis [-acfhklVw] [-C file] "
+ fputs("usage: whatis [-acfhklw] [-C file] "
"[-M path] [-m path] [-O outkey] [-S arch]\n"
"\t [-s section] name ...\n", stderr);
break;
case ARG_EXPR:
- fputs("usage: apropos [-acfhklVw] [-C file] "
+ fputs("usage: apropos [-acfhklw] [-C file] "
"[-M path] [-m path] [-O outkey] [-S arch]\n"
"\t [-s section] expression ...\n", stderr);
break;
diff --git a/usr.bin/mandoc/man.1 b/usr.bin/mandoc/man.1
index 343449dd1d6..58eaf4da679 100644
--- a/usr.bin/mandoc/man.1
+++ b/usr.bin/mandoc/man.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: man.1,v 1.10 2015/01/20 21:12:46 schwarze Exp $
+.\" $OpenBSD: man.1,v 1.11 2015/02/16 16:18:02 schwarze Exp $
.\"
.\" Copyright (c) 1989, 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -31,7 +31,7 @@
.\"
.\" @(#)man.1 8.2 (Berkeley) 1/2/94
.\"
-.Dd $Mdocdate: January 20 2015 $
+.Dd $Mdocdate: February 16 2015 $
.Dt MAN 1
.Os
.Sh NAME
@@ -39,7 +39,7 @@
.Nd display manual pages
.Sh SYNOPSIS
.Nm man
-.Op Fl acfhklVw
+.Op Fl acfhklw
.Op Fl C Ar file
.Op Fl I Cm os Ns = Ns Ar name
.Op Fl K Ar encoding
@@ -291,8 +291,6 @@ and
are described in the
.Xr mandoc 1
manual.
-.It Fl V
-Print version and exit.
.It Fl W Ar level
Specify the minimum message
.Ar level
@@ -416,7 +414,7 @@ utility is compliant with the
specification.
.Pp
The flags
-.Op Fl aCcfhIKlMmOSsTVWw ,
+.Op Fl aCcfhIKlMmOSsTWw ,
as well as the environment variables
.Ev MACHINE ,
.Ev MANPAGER ,
diff --git a/usr.bin/mandoc/mandoc.1 b/usr.bin/mandoc/mandoc.1
index 6303b2b8008..c62e27e070e 100644
--- a/usr.bin/mandoc/mandoc.1
+++ b/usr.bin/mandoc/mandoc.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: mandoc.1,v 1.76 2015/02/10 07:40:27 schwarze Exp $
+.\" $OpenBSD: mandoc.1,v 1.77 2015/02/16 16:18:02 schwarze Exp $
.\"
.\" Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
.\" Copyright (c) 2012, 2014, 2015 Ingo Schwarze <schwarze@openbsd.org>
@@ -15,7 +15,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: February 10 2015 $
+.Dd $Mdocdate: February 16 2015 $
.Dt MANDOC 1
.Os
.Sh NAME
@@ -23,7 +23,7 @@
.Nd format and display UNIX manuals
.Sh SYNOPSIS
.Nm mandoc
-.Op Fl acfhklV
+.Op Fl acfhkl
.Sm off
.Op Fl I Cm os Li = Ar name
.Sm on
@@ -150,8 +150,6 @@ See
for available formats.
Defaults to
.Fl T Ns Cm locale .
-.It Fl V
-Print version and exit.
.It Fl W Ns Ar level
Specify the minimum message
.Ar level