pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/mdoclint Remove -n, mandoc now has a warning ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b03350793bd9
branches:  trunk
changeset: 363383:b03350793bd9
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Wed Jun 07 19:09:55 2017 +0000

description:
Remove -n, mandoc now has a warning for this case.

>From Ingo Schwarze.

Bump version.

diffstat:

 textproc/mdoclint/Makefile         |   4 ++--
 textproc/mdoclint/files/mdoclint   |  21 +++++++--------------
 textproc/mdoclint/files/mdoclint.1 |   9 +++------
 3 files changed, 12 insertions(+), 22 deletions(-)

diffs (118 lines):

diff -r 07d6ee9456d2 -r b03350793bd9 textproc/mdoclint/Makefile
--- a/textproc/mdoclint/Makefile        Wed Jun 07 18:07:50 2017 +0000
+++ b/textproc/mdoclint/Makefile        Wed Jun 07 19:09:55 2017 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.65 2017/06/01 14:38:50 wiz Exp $
+# $NetBSD: Makefile,v 1.66 2017/06/07 19:09:55 wiz Exp $
 
-DISTNAME=      mdoclint-1.54
+DISTNAME=      mdoclint-1.55
 CATEGORIES=    textproc
 MASTER_SITES=  # none
 DISTFILES=     # none
diff -r 07d6ee9456d2 -r b03350793bd9 textproc/mdoclint/files/mdoclint
--- a/textproc/mdoclint/files/mdoclint  Wed Jun 07 18:07:50 2017 +0000
+++ b/textproc/mdoclint/files/mdoclint  Wed Jun 07 19:09:55 2017 +0000
@@ -1,7 +1,7 @@
 #!@PERL5@
 #
 # $OpenBSD: mdoclint,v 1.48 2016/01/24 20:10:48 schwarze Exp $
-# $NetBSD: mdoclint,v 1.74 2017/06/01 14:38:50 wiz Exp $
+# $NetBSD: mdoclint,v 1.75 2017/06/07 19:09:55 wiz Exp $
 #
 # Copyright (c) 2001-2017 Thomas Klausner
 # All rights reserved.
@@ -43,17 +43,17 @@
 
 use vars qw(
        $opt_D $opt_d $opt_e $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_m $opt_o $opt_p $opt_r $opt_S $opt_v $opt_w $opt_x
 );
 
 
 my $arch=`uname -m`;
 chomp($arch);
-my $options="aDdeFfHhlmnoprSvwXx";
+my $options="DdeFhlmoprSvwx";
 
 sub usage
        {
-       my $default = OPENBSD ? "-DdmnoprSx" : "-DdelmnoprSx";
+       my $default = OPENBSD ? "-DdmoprSx" : "-DdelmoprSx";
 
        print STDERR <<"EOF";
 mdoclint: verify man page correctness
@@ -65,7 +65,6 @@
        -h      display this help text
        -l      warn about unknown libraries
        -m      warn about man pages that are not in mdoc(7) format
-       -n      warn about .Nd's ending in '.'
        -o      warn about non-empty .Os strings
        -p      warn about punctuation problems
        -r      warn about missing RCS Id
@@ -236,12 +235,10 @@
        $opt_h and usage();
 
        # default to all warnings if no flag is set
-       unless ($opt_D or $opt_d or $opt_e or $opt_l
-               or $opt_m or $opt_n or $opt_o or $opt_p or $opt_r
-               or $opt_S or $opt_x) {
+       unless ($opt_D or $opt_d or $opt_e or $opt_l or $opt_m
+           or $opt_o or $opt_p or $opt_r or $opt_S or $opt_x) {
                $opt_D = $opt_d = $opt_m =
-                   $opt_n = $opt_o = $opt_p = $opt_r = $opt_S =
-                   $opt_x = 1;
+                   $opt_o = $opt_p = $opt_r = $opt_S = $opt_x = 1;
                $opt_e = $opt_l = 1 if NETBSD;
        }
 }
@@ -438,10 +435,6 @@
                $s->warning(".Os used with argument `$1'") if $opt_o;
        }
 
-       if (/^\.Nd.*\.$/o) {
-               $s->warning(".Nd ends with a dot: `$_'") if $opt_n;
-       }
-
        if (/(\w\w)\.\s+[A-Z]/o and not /^.%T/ and not $s->{inliteral}) {
                if ("$1" ne "St") {
                        $s->warning("new sentence, new line: `$_'") if $opt_p;
diff -r 07d6ee9456d2 -r b03350793bd9 textproc/mdoclint/files/mdoclint.1
--- a/textproc/mdoclint/files/mdoclint.1        Wed Jun 07 18:07:50 2017 +0000
+++ b/textproc/mdoclint/files/mdoclint.1        Wed Jun 07 19:09:55 2017 +0000
@@ -1,5 +1,5 @@
 .\"    $OpenBSD: mdoclint.1,v 1.7 2009/04/13 19:06:38 jmc Exp $
-.\" $NetBSD: mdoclint.1,v 1.20 2017/06/01 14:38:50 wiz Exp $
+.\" $NetBSD: mdoclint.1,v 1.21 2017/06/07 19:09:55 wiz Exp $
 .\"
 .\" Copyright (c) 2001-2013 Thomas Klausner
 .\" All rights reserved.
@@ -33,7 +33,7 @@
 .Nd man page verifier
 .Sh SYNOPSIS
 .Nm
-.Op Fl DdeFhlmnoprSvwx
+.Op Fl DdeFhlmoprSvwx
 .Ar
 .Sh DESCRIPTION
 .Nm
@@ -41,7 +41,7 @@
 It tries to automatically find as many common
 errors that occur when writing man pages as possible.
 If no flags are given,
-.Fl DdelmnoprSx
+.Fl DdelmoprSx
 is assumed (that is, everything except
 .Fl Fhvw ) .
 .Pp
@@ -63,9 +63,6 @@
 Warn if man page is not in
 .Xr mdoc 7
 format.
-.It Fl n
-Warn when the .Nd macro's argument ends in a dot, that is
-.Sq \&. .
 .It Fl o
 Warn when the .Os macro has an argument (it shouldn't have one at
 least in the base system, because on



Home | Main Index | Thread Index | Old Index