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:           Wed Jun  7 19:09:55 UTC 2017

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

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

>From Ingo Schwarze.

Bump version.


To generate a diff of this commit:
cvs rdiff -u -r1.65 -r1.66 pkgsrc/textproc/mdoclint/Makefile
cvs rdiff -u -r1.74 -r1.75 pkgsrc/textproc/mdoclint/files/mdoclint
cvs rdiff -u -r1.20 -r1.21 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.65 pkgsrc/textproc/mdoclint/Makefile:1.66
--- pkgsrc/textproc/mdoclint/Makefile:1.65      Thu Jun  1 14:38:50 2017
+++ pkgsrc/textproc/mdoclint/Makefile   Wed Jun  7 19:09:55 2017
@@ -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

Index: pkgsrc/textproc/mdoclint/files/mdoclint
diff -u pkgsrc/textproc/mdoclint/files/mdoclint:1.74 pkgsrc/textproc/mdoclint/files/mdoclint:1.75
--- pkgsrc/textproc/mdoclint/files/mdoclint:1.74        Thu Jun  1 14:38:50 2017
+++ pkgsrc/textproc/mdoclint/files/mdoclint     Wed Jun  7 19:09:55 2017
@@ -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 constant {
 
 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 @@ usage:        mdoclint [-$options] file ...
        -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 @@ 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_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 @@ sub process_line
                $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;

Index: pkgsrc/textproc/mdoclint/files/mdoclint.1
diff -u pkgsrc/textproc/mdoclint/files/mdoclint.1:1.20 pkgsrc/textproc/mdoclint/files/mdoclint.1:1.21
--- pkgsrc/textproc/mdoclint/files/mdoclint.1:1.20      Thu Jun  1 14:38:50 2017
+++ pkgsrc/textproc/mdoclint/files/mdoclint.1   Wed Jun  7 19:09:55 2017
@@ -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 @@ 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 DdelmnoprSx
+.Fl DdelmoprSx
 is assumed (that is, everything except
 .Fl Fhvw ) .
 .Pp
@@ -63,9 +63,6 @@ Warn about unknown libraries used as arg
 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