From 933a958c13d07b85c7a5144d2fd2df695adaf49d Mon Sep 17 00:00:00 2001 From: wiz Date: Thu, 1 Jun 2017 14:33:28 +0000 Subject: Remove -X option, now a style warning in mandoc. From Ingo Schwarze. Bump version. --- textproc/mdoclint/Makefile | 4 ++-- textproc/mdoclint/files/mdoclint | 33 +++++---------------------------- textproc/mdoclint/files/mdoclint.1 | 23 ++++------------------- 3 files changed, 11 insertions(+), 49 deletions(-) (limited to 'textproc') diff --git a/textproc/mdoclint/Makefile b/textproc/mdoclint/Makefile index 641c57c6dd2..f8a8bd12556 100644 --- a/textproc/mdoclint/Makefile +++ b/textproc/mdoclint/Makefile @@ -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 --git a/textproc/mdoclint/files/mdoclint b/textproc/mdoclint/files/mdoclint index 084f7fff025..1c25ce8067e 100755 --- a/textproc/mdoclint/files/mdoclint +++ b/textproc/mdoclint/files/mdoclint @@ -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; diff --git a/textproc/mdoclint/files/mdoclint.1 b/textproc/mdoclint/files/mdoclint.1 index c6455040ba7..900992a1f73 100755 --- a/textproc/mdoclint/files/mdoclint.1 +++ b/textproc/mdoclint/files/mdoclint.1 @@ -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 .An Ingo Schwarze -.Aq Mt schwarze@usta.de +.Aq Mt schwarze@OpenBSD.org .Sh BUGS The .Fl o -- cgit v1.2.3