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:           Thu Jun  1 14:33:28 UTC 2017

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

Log Message:
Remove -X option, now a style warning in mandoc.
>From Ingo Schwarze.

Bump version.


To generate a diff of this commit:
cvs rdiff -u -r1.63 -r1.64 pkgsrc/textproc/mdoclint/Makefile
cvs rdiff -u -r1.72 -r1.73 pkgsrc/textproc/mdoclint/files/mdoclint
cvs rdiff -u -r1.18 -r1.19 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.63 pkgsrc/textproc/mdoclint/Makefile:1.64
--- pkgsrc/textproc/mdoclint/Makefile:1.63      Tue May 16 13:27:39 2017
+++ pkgsrc/textproc/mdoclint/Makefile   Thu Jun  1 14:33:28 2017
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.63 2017/05/16 13:27:39 wiz Exp $
+# $NetBSD: Makefile,v 1.64 2017/06/01 14:33:28 wiz Exp $
 
-DISTNAME=      mdoclint-1.52
+DISTNAME=      mdoclint-1.53
 CATEGORIES=    textproc
 MASTER_SITES=  # none
 DISTFILES=     # none

Index: pkgsrc/textproc/mdoclint/files/mdoclint
diff -u pkgsrc/textproc/mdoclint/files/mdoclint:1.72 pkgsrc/textproc/mdoclint/files/mdoclint:1.73
--- pkgsrc/textproc/mdoclint/files/mdoclint:1.72        Tue May 16 13:27:39 2017
+++ pkgsrc/textproc/mdoclint/files/mdoclint     Thu Jun  1 14:33:28 2017
@@ -1,7 +1,7 @@
 #!@PERL5@
 #
 # $OpenBSD: mdoclint,v 1.48 2016/01/24 20:10:48 schwarze Exp $
-# $NetBSD: mdoclint,v 1.72 2017/05/16 13:27:39 wiz Exp $
+# $NetBSD: mdoclint,v 1.73 2017/06/01 14:33:28 wiz Exp $
 #
 # Copyright (c) 2001-2017 Thomas Klausner
 # All rights reserved.
@@ -43,8 +43,7 @@ use constant {
 
 use vars qw(
        $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
+       $opt_m $opt_n $opt_o $opt_p $opt_r $opt_S $opt_v $opt_w $opt_x
 );
 
 
@@ -54,7 +53,7 @@ my $options="aDdeFfHhlmnoprSvwXx";
 
 sub usage
        {
-       my $default = OPENBSD ? "-DdfmnoprSXx" : "-DdeflmnoprSXx";
+       my $default = OPENBSD ? "-DdfmnoprSx" : "-DdeflmnoprSx";
 
        print STDERR <<"EOF";
 mdoclint: verify man page correctness
@@ -74,7 +73,6 @@ usage:        mdoclint [-$options] file ...
        -S      warn about any .Sh weirdness
        -v      verbose output
        -w      show section header in warnings
-       -X      warn about explicit mentions of the *BSD system names
        -x      warn about cross-references with missing targets
 Default is $default if no flag is specified.
 EOF
@@ -82,13 +80,6 @@ EOF
 }
 
 
-my %short = (
-    "Free" => ".Fx",
-    "Net" => ".Nx",
-    "DragonFly" => ".Dx",
-    "Open" => ".Ox"
-);
-
 my %libraries = (
     "libarchive" => 1,
     "libarm" => 1,
@@ -248,10 +239,10 @@ sub handle_options
        # default to all warnings if no flag is set
        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) {
+               or $opt_S or $opt_x) {
                $opt_D = $opt_d = $opt_f = $opt_m =
                    $opt_n = $opt_o = $opt_p = $opt_r = $opt_S =
-                   $opt_X = $opt_x = 1;
+                   $opt_x = 1;
                $opt_e = $opt_l = 1 if NETBSD;
        }
 }
@@ -442,20 +433,6 @@ sub process_line
        if (/^\.Fn.*,.+/o) {
                $s->warning("possible .Fn misuse: `$_'") if $opt_f;
        }
-
-       if (/\b(Free|Net|DragonFly|Open)BSD\b/o
-           and not /\b(?:www|ftp)\.(?:Free|Net|DragonFly|Open)BSD\.org\b/o
-           and not /\bOpenBSD\::.*3p\b/o
-           and not /\/pub\/OpenBSD\//o
-           and not /\@(?:Free|Net|Open)BSD\.(?i:org)\b/o) {
-               $s->warning("verbose mention of `$1BSD' instead of "
-                   . "`$short{$1}': `$_'") if $opt_X;
-       }
-       if (/^\./o and (/Bx (Open)/o or /Bx (Free)/o
-                       or /Bx (DragonFly)/o or /Bx (Net)/o)) {
-               $s->warning("`.Bx $1' found -- use $short{$1} instead")
-                   if $opt_X;
-       }
        if (/^\.Lb\s+(\S+)/o) {
                if (not $libraries{$1}) {
                        $s->warning("Unknown library `$1' used as Lb argument") if $opt_l;

Index: pkgsrc/textproc/mdoclint/files/mdoclint.1
diff -u pkgsrc/textproc/mdoclint/files/mdoclint.1:1.18 pkgsrc/textproc/mdoclint/files/mdoclint.1:1.19
--- pkgsrc/textproc/mdoclint/files/mdoclint.1:1.18      Tue May 16 13:27:39 2017
+++ pkgsrc/textproc/mdoclint/files/mdoclint.1   Thu Jun  1 14:33:28 2017
@@ -1,5 +1,5 @@
 .\"    $OpenBSD: mdoclint.1,v 1.7 2009/04/13 19:06:38 jmc Exp $
-.\" $NetBSD: mdoclint.1,v 1.18 2017/05/16 13:27:39 wiz Exp $
+.\" $NetBSD: mdoclint.1,v 1.19 2017/06/01 14:33:28 wiz Exp $
 .\"
 .\" Copyright (c) 2001-2013 Thomas Klausner
 .\" All rights reserved.
@@ -33,7 +33,7 @@
 .Nd man page verifier
 .Sh SYNOPSIS
 .Nm
-.Op Fl DdeFfhlmnoprSvwXx
+.Op Fl DdeFfhlmnoprSvwx
 .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 DdeflmnoprSXx
+.Fl DdeflmnoprSx
 is assumed (that is, everything except
 .Fl Fhvw ) .
 .Pp
@@ -92,21 +92,6 @@ Verbose output.
 Display the section name,
 in addition to the relevant line number,
 in warnings.
-.It Fl X
-Warn about explicit mentions of the words
-.Dq FreeBSD ,
-.Dq NetBSD ,
-.Dq DragonFlyBSD ,
-and
-.Dq OpenBSD ,
-which should be replaced by .Fx, .Nx, .Dx, and .Ox respectively.
-Also notices occurrences of
-.Dq \&.Bx Free ,
-.Dq \&.Bx Net ,
-.Dq \&.Bx DragonFly ,
-and
-.Dq \&.Bx Open ,
-for which the same applies.
 .It Fl x
 Warn about cross-references whose target is missing, cross-references
 to itself, or plain bogus cross-references.
@@ -129,7 +114,7 @@ and
 .An Marc Espie
 .Aq Mt espie%OpenBSD.org@localhost
 .An Ingo Schwarze
-.Aq Mt schwarze%usta.de@localhost
+.Aq Mt schwarze%OpenBSD.org@localhost
 .Sh BUGS
 The
 .Fl o



Home | Main Index | Thread Index | Old Index