summaryrefslogtreecommitdiff
path: root/textproc/mdoclint
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2017-05-16 13:27:39 +0000
committerwiz <wiz@pkgsrc.org>2017-05-16 13:27:39 +0000
commitb4e037557f18ef1260f4743538aa2da8b676ad2b (patch)
tree455aa96aa4734b2206a162dd0dda4d5adb513b26 /textproc/mdoclint
parent926767ed632a16608665b31c57e779111d3ca7ce (diff)
downloadpkgsrc-b4e037557f18ef1260f4743538aa2da8b676ad2b.tar.gz
Remove -H, it was only needed for mdoc2html when we were still using groff.
From Ingo Schwarze. Mention Ingo in man page. Bump version.
Diffstat (limited to 'textproc/mdoclint')
-rw-r--r--textproc/mdoclint/Makefile4
-rwxr-xr-xtextproc/mdoclint/files/mdoclint19
-rwxr-xr-xtextproc/mdoclint/files/mdoclint.129
3 files changed, 13 insertions, 39 deletions
diff --git a/textproc/mdoclint/Makefile b/textproc/mdoclint/Makefile
index 50388c412fc..641c57c6dd2 100644
--- a/textproc/mdoclint/Makefile
+++ b/textproc/mdoclint/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.62 2017/05/15 09:33:03 wiz Exp $
+# $NetBSD: Makefile,v 1.63 2017/05/16 13:27:39 wiz Exp $
-DISTNAME= mdoclint-1.51
+DISTNAME= mdoclint-1.52
CATEGORIES= textproc
MASTER_SITES= # none
DISTFILES= # none
diff --git a/textproc/mdoclint/files/mdoclint b/textproc/mdoclint/files/mdoclint
index f6352071673..084f7fff025 100755
--- a/textproc/mdoclint/files/mdoclint
+++ b/textproc/mdoclint/files/mdoclint
@@ -1,7 +1,7 @@
#!@PERL5@
#
# $OpenBSD: mdoclint,v 1.48 2016/01/24 20:10:48 schwarze Exp $
-# $NetBSD: mdoclint,v 1.71 2017/05/15 09:33:03 wiz Exp $
+# $NetBSD: mdoclint,v 1.72 2017/05/16 13:27:39 wiz Exp $
#
# Copyright (c) 2001-2017 Thomas Klausner
# All rights reserved.
@@ -42,7 +42,7 @@ use constant {
};
use vars qw(
- $opt_D $opt_d $opt_e $opt_F $opt_f $opt_H $opt_h $opt_l
+ $opt_D $opt_d $opt_e $opt_F $opt_f $opt_h $opt_l
$opt_m $opt_n $opt_o $opt_p $opt_r $opt_S $opt_v $opt_w
$opt_X $opt_x
);
@@ -64,7 +64,6 @@ usage: mdoclint [-$options] file ...
-e warn about unsorted errors (for functions)
-F fix whitespace problems (asks before overwriting)
-f warn about possible incorrect .Fn syntax
- -H warn about characters that produce problems in HTML output
-h display this help text
-l warn about unknown libraries
-m warn about man pages that are not in mdoc(7) format
@@ -247,7 +246,7 @@ sub handle_options
$opt_h and usage();
# default to all warnings if no flag is set
- unless ($opt_D or $opt_d or $opt_e or $opt_f or $opt_H or $opt_l
+ unless ($opt_D or $opt_d or $opt_e or $opt_f or $opt_l
or $opt_m or $opt_n or $opt_o or $opt_p or $opt_r
or $opt_S or $opt_X or $opt_x) {
$opt_D = $opt_d = $opt_f = $opt_m =
@@ -443,18 +442,6 @@ sub process_line
if (/^\.Fn.*,.+/o) {
$s->warning("possible .Fn misuse: `$_'") if $opt_f;
}
- if (OPENBSD) {
- if (/^(?:[<>])/o or /[^\\][<>]/o) {
- $s->warning("use \*(Lt \*(Gt (or .Aq) ",
- "instead of < >: `$_'") if $opt_H;
- }
- }
- if (NETBSD) {
- if (/^(?:[<>&])/o or /[^\\][<>&]/o) {
- $s->warning("use \*[Lt] \*[Gt] (or .Aq) \*[Am] ",
- "instead of < > &: `$_'") if $opt_H;
- }
- }
if (/\b(Free|Net|DragonFly|Open)BSD\b/o
and not /\b(?:www|ftp)\.(?:Free|Net|DragonFly|Open)BSD\.org\b/o
diff --git a/textproc/mdoclint/files/mdoclint.1 b/textproc/mdoclint/files/mdoclint.1
index 831480ac548..c6455040ba7 100755
--- a/textproc/mdoclint/files/mdoclint.1
+++ b/textproc/mdoclint/files/mdoclint.1
@@ -1,5 +1,5 @@
.\" $OpenBSD: mdoclint.1,v 1.7 2009/04/13 19:06:38 jmc Exp $
-.\" $NetBSD: mdoclint.1,v 1.17 2017/05/14 18:04:23 wiz Exp $
+.\" $NetBSD: mdoclint.1,v 1.18 2017/05/16 13:27:39 wiz Exp $
.\"
.\" Copyright (c) 2001-2013 Thomas Klausner
.\" All rights reserved.
@@ -25,7 +25,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd May 14, 2017
+.Dd May 15, 2017
.Dt MDOCLINT 1
.Os
.Sh NAME
@@ -33,7 +33,7 @@
.Nd man page verifier
.Sh SYNOPSIS
.Nm
-.Op Fl DdeFfHhlmnoprSvwXx
+.Op Fl DdeFfhlmnoprSvwXx
.Ar
.Sh DESCRIPTION
.Nm
@@ -43,7 +43,7 @@ errors that occur when writing man pages as possible.
If no flags are given,
.Fl DdeflmnoprSXx
is assumed (that is, everything except
-.Fl FHhvw ) .
+.Fl Fhvw ) .
.Pp
The options are as follows:
.Bl -tag -width xxxx -compact
@@ -60,21 +60,6 @@ Warn about possible .Fn abuse; its arguments should be put in
.Sq \&"
separately, not together and separated by commas.
Those will be automatically added by mdoc.
-.It Fl H
-Show warnings for characters that might generate problems in
-HTML output:
-.Sq \*[Lt] ,
-.Sq \*[Gt] ,
-and
-.Sq \*[Am] .
-Replace a pair of angle quotes with the .Aq macro.
-Otherwise, the replacements are
-.Dq \e*[Lt] ,
-.Dq \e*[Gt] ,
-and
-.Dq \e*[Am] .
-This option is off by default,
-as these characters no longer pose any problems.
.It Fl h
Display usage.
.It Fl l
@@ -140,9 +125,11 @@ and
.Xr mdoc.samples 7
.Sh AUTHORS
.An Thomas Klausner
-.Aq wiz@netbsd.org
+.Aq Mt wiz@NetBSD.org
.An Marc Espie
-.Aq espie@openbsd.org
+.Aq Mt espie@OpenBSD.org
+.An Ingo Schwarze
+.Aq Mt schwarze@usta.de
.Sh BUGS
The
.Fl o