pkgsrc-Changes archive

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

CVS commit: pkgsrc/textproc/mdoclint



Module Name:    pkgsrc
Committed By:   wiz
Date:           Fri Apr 28 13:43:57 UTC 2017

Modified Files:
        pkgsrc/textproc/mdoclint: Makefile
        pkgsrc/textproc/mdoclint/files: mdoclint mdoclint.1

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

>From Ingo Schwarze.

Bump version.


To generate a diff of this commit:
cvs rdiff -u -r1.57 -r1.58 pkgsrc/textproc/mdoclint/Makefile
cvs rdiff -u -r1.65 -r1.66 pkgsrc/textproc/mdoclint/files/mdoclint
cvs rdiff -u -r1.13 -r1.14 pkgsrc/textproc/mdoclint/files/mdoclint.1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/textproc/mdoclint/Makefile
diff -u pkgsrc/textproc/mdoclint/Makefile:1.57 pkgsrc/textproc/mdoclint/Makefile:1.58
--- pkgsrc/textproc/mdoclint/Makefile:1.57      Tue Apr 25 13:17:38 2017
+++ pkgsrc/textproc/mdoclint/Makefile   Fri Apr 28 13:43:57 2017
@@ -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

Index: pkgsrc/textproc/mdoclint/files/mdoclint
diff -u pkgsrc/textproc/mdoclint/files/mdoclint:1.65 pkgsrc/textproc/mdoclint/files/mdoclint:1.66
--- pkgsrc/textproc/mdoclint/files/mdoclint:1.65        Tue Apr 25 13:17:38 2017
+++ pkgsrc/textproc/mdoclint/files/mdoclint     Fri Apr 28 13:43:57 2017
@@ -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 @@ use constant {
        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 @@ use vars qw(
 
 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 @@ sub handle_options
        $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 @@ sub new
                sasection => 0,
                saname => '',
                sarest => ',',
-               inauthors => 0,
                in_section => 0,
                inliteral => 0,
                shseen => {},
@@ -379,12 +376,6 @@ sub end_of_section
                # 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 @@ sub set_section_header
                $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 @@ sub process_line
                        }
                        $s->{sarest} = "";
                }
-       } elsif ($s->{in_section} == SECTION_AUTHORS) {
-               if (/^\.An / && not /^\.An -(no|)split/) {
-                       $s->{an_found} = 1;
-               }
        }
 
        if (/^\.Fn.*,.+/o) {

Index: pkgsrc/textproc/mdoclint/files/mdoclint.1
diff -u pkgsrc/textproc/mdoclint/files/mdoclint.1:1.13 pkgsrc/textproc/mdoclint/files/mdoclint.1:1.14
--- pkgsrc/textproc/mdoclint/files/mdoclint.1:1.13      Wed Aug 21 11:22:15 2013
+++ pkgsrc/textproc/mdoclint/files/mdoclint.1   Fri Apr 28 13:43:57 2017
@@ -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 @@ is a man page verifier.
 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