pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/textproc/mdoclint Remove -X option, now a style warnin...
details: https://anonhg.NetBSD.org/pkgsrc/rev/2d99f5558215
branches: trunk
changeset: 363127:2d99f5558215
user: wiz <wiz%pkgsrc.org@localhost>
date: Thu Jun 01 14:33:28 2017 +0000
description:
Remove -X option, now a style warning in mandoc.
>From Ingo Schwarze.
Bump version.
diffstat:
textproc/mdoclint/Makefile | 4 ++--
textproc/mdoclint/files/mdoclint | 33 +++++----------------------------
textproc/mdoclint/files/mdoclint.1 | 23 ++++-------------------
3 files changed, 11 insertions(+), 49 deletions(-)
diffs (158 lines):
diff -r c79f0f0586f6 -r 2d99f5558215 textproc/mdoclint/Makefile
--- a/textproc/mdoclint/Makefile Thu Jun 01 13:31:45 2017 +0000
+++ b/textproc/mdoclint/Makefile Thu Jun 01 14:33:28 2017 +0000
@@ -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
diff -r c79f0f0586f6 -r 2d99f5558215 textproc/mdoclint/files/mdoclint
--- a/textproc/mdoclint/files/mdoclint Thu Jun 01 13:31:45 2017 +0000
+++ b/textproc/mdoclint/files/mdoclint Thu Jun 01 14:33:28 2017 +0000
@@ -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 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 @@
sub usage
{
- my $default = OPENBSD ? "-DdfmnoprSXx" : "-DdeflmnoprSXx";
+ my $default = OPENBSD ? "-DdfmnoprSx" : "-DdeflmnoprSx";
print STDERR <<"EOF";
mdoclint: verify man page correctness
@@ -74,7 +73,6 @@
-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 @@
}
-my %short = (
- "Free" => ".Fx",
- "Net" => ".Nx",
- "DragonFly" => ".Dx",
- "Open" => ".Ox"
-);
-
my %libraries = (
"libarchive" => 1,
"libarm" => 1,
@@ -248,10 +239,10 @@
# 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 @@
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;
diff -r c79f0f0586f6 -r 2d99f5558215 textproc/mdoclint/files/mdoclint.1
--- a/textproc/mdoclint/files/mdoclint.1 Thu Jun 01 13:31:45 2017 +0000
+++ b/textproc/mdoclint/files/mdoclint.1 Thu Jun 01 14:33:28 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.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 @@
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 @@
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 @@
.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