pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/textproc/mdoclint Remove -A option; mandoc -Tlint comp...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/84c674991297
branches:  trunk
changeset: 361892:84c674991297
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Fri Apr 28 13:43:57 2017 +0000

description:
Remove -A option; mandoc -Tlint complains about this as well.

>From Ingo Schwarze.

Bump version.

diffstat:

 textproc/mdoclint/Makefile         |   4 ++--
 textproc/mdoclint/files/mdoclint   |  27 ++++++---------------------
 textproc/mdoclint/files/mdoclint.1 |  14 ++++----------
 3 files changed, 12 insertions(+), 33 deletions(-)

diffs (160 lines):

diff -r 271ec9c3af02 -r 84c674991297 textproc/mdoclint/Makefile
--- a/textproc/mdoclint/Makefile        Fri Apr 28 08:55:03 2017 +0000
+++ b/textproc/mdoclint/Makefile        Fri Apr 28 13:43:57 2017 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.57 2017/04/25 13:17:38 wiz Exp $
+# $NetBSD: Makefile,v 1.58 2017/04/28 13:43:57 wiz Exp $
 
-DISTNAME=      mdoclint-1.46
+DISTNAME=      mdoclint-1.47
 CATEGORIES=    textproc
 MASTER_SITES=  # none
 DISTFILES=     # none
diff -r 271ec9c3af02 -r 84c674991297 textproc/mdoclint/files/mdoclint
--- a/textproc/mdoclint/files/mdoclint  Fri Apr 28 08:55:03 2017 +0000
+++ b/textproc/mdoclint/files/mdoclint  Fri Apr 28 13:43:57 2017 +0000
@@ -1,7 +1,7 @@
 #!@PERL5@
 #
 # $OpenBSD: mdoclint,v 1.48 2016/01/24 20:10:48 schwarze Exp $
-# $NetBSD: mdoclint,v 1.65 2017/04/25 13:17:38 wiz Exp $
+# $NetBSD: mdoclint,v 1.66 2017/04/28 13:43:57 wiz Exp $
 #
 # Copyright (c) 2001-2017 Thomas Klausner
 # All rights reserved.
@@ -41,11 +41,10 @@
        NETBSD => 1,
        SECTION_NAME => 2,
        SECTION_SEE_ALSO => 3,
-       SECTION_AUTHORS => 4
 };
 
 use vars qw(
-       $opt_A $opt_a $opt_D $opt_d $opt_e $opt_F $opt_f $opt_H $opt_h $opt_l
+       $opt_a $opt_D $opt_d $opt_e $opt_F $opt_f $opt_H $opt_h $opt_l
        $opt_m
        $opt_n $opt_o $opt_P $opt_p $opt_r $opt_S $opt_s $opt_v $opt_w
        $opt_X $opt_x
@@ -54,16 +53,15 @@
 
 my $arch=`uname -m`;
 chomp($arch);
-my $options="AaDdeFfHhlmnoPprSsvwXx";
+my $options="aDdeFfHhlmnoPprSsvwXx";
 
 sub usage
        {
-       my $default = OPENBSD ? "-AaDdfmnoPprSsXx" : "-AaDdeflmnoPprSsXx";
+       my $default = OPENBSD ? "-aDdfmnoPprSsXx" : "-aDdeflmnoPprSsXx";
 
        print STDERR <<"EOF";
 mdoclint: verify man page correctness
 usage: mdoclint [-$options] file ...
-       -A      warn about missing .An in AUTHORS section
        -a      warn about SEE ALSO section problems
        -D      warn about bad casing and archs in .Dt
        -d      warn about bad date strings (in .Dd only)
@@ -255,12 +253,12 @@
        $opt_h and usage();
 
        # default to all warnings if no flag is set
-       unless ($opt_A or $opt_a or $opt_D or $opt_d or $opt_e
+       unless ($opt_a or $opt_D or $opt_d or $opt_e
                or $opt_f or $opt_H or $opt_l
                or $opt_m or $opt_n
                or $opt_o or $opt_P or $opt_p or $opt_r
                or $opt_S or $opt_s or $opt_X or $opt_x) {
-               $opt_A = $opt_a = $opt_D = $opt_d = $opt_f = $opt_m =
+               $opt_a = $opt_D = $opt_d = $opt_f = $opt_m =
                    $opt_n = $opt_o = $opt_P = $opt_p = $opt_r = $opt_S =
                    $opt_s = $opt_X = $opt_x = 1;
                $opt_e = $opt_l = 1 if NETBSD;
@@ -316,7 +314,6 @@
                sasection => 0,
                saname => '',
                sarest => ',',
-               inauthors => 0,
                in_section => 0,
                inliteral => 0,
                shseen => {},
@@ -379,12 +376,6 @@
                # to avoid a second warning at EOF
                $s->{sarest} = "";
        }
-
-       if ($s->{in_section} == SECTION_AUTHORS) {
-           if (!$s->{an_found}) {
-               $s->warning("missing .An in AUTHORS section") if $opt_A;
-           }
-       }
 }
 
 sub set_section_header
@@ -398,8 +389,6 @@
                $s->{in_section} = SECTION_NAME;
        } elsif ($section_header eq 'SEE ALSO') {
                $s->{in_section} = SECTION_SEE_ALSO;
-       } elsif ($section_header eq 'AUTHORS') {
-               $s->{in_section} = SECTION_AUTHORS;
        } else {
                $s->{in_section} = 0;
        }
@@ -527,10 +516,6 @@
                        }
                        $s->{sarest} = "";
                }
-       } elsif ($s->{in_section} == SECTION_AUTHORS) {
-               if (/^\.An / && not /^\.An -(no|)split/) {
-                       $s->{an_found} = 1;
-               }
        }
 
        if (/^\.Fn.*,.+/o) {
diff -r 271ec9c3af02 -r 84c674991297 textproc/mdoclint/files/mdoclint.1
--- a/textproc/mdoclint/files/mdoclint.1        Fri Apr 28 08:55:03 2017 +0000
+++ b/textproc/mdoclint/files/mdoclint.1        Fri Apr 28 13:43:57 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.13 2013/08/21 11:22:15 wiz Exp $
+.\" $NetBSD: mdoclint.1,v 1.14 2017/04/28 13:43:57 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 August 21, 2013
+.Dd April 28, 2017
 .Dt MDOCLINT 1
 .Os
 .Sh NAME
@@ -33,7 +33,7 @@
 .Nd man page verifier
 .Sh SYNOPSIS
 .Nm
-.Op Fl AaDdeFfHhlmnoPprSsvwXx
+.Op Fl aDdeFfHhlmnoPprSsvwXx
 .Ar
 .Sh DESCRIPTION
 .Nm
@@ -41,18 +41,12 @@
 It tries to automatically find as many common
 errors that occur when writing man pages as possible.
 If no flags are given,
-.Fl AaDdeflmnoPprSsXx
+.Fl aDdeflmnoPprSsXx
 is assumed (that is, everything except
 .Fl FHhvw ) .
 .Pp
 The options are as follows:
 .Bl -tag -width xxxx -compact
-.It Fl A
-Warn if the
-.Dq .An
-macro (author) markup is not used in the
-.Sx AUTHORS
-section.
 .It Fl a
 Warn about some possible problems in the
 .Sx SEE ALSO



Home | Main Index | Thread Index | Old Index