diff options
author | wiz <wiz@pkgsrc.org> | 2013-08-21 11:22:15 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2013-08-21 11:22:15 +0000 |
commit | 57020e0d346bcda9c398cbcef4486906047a879b (patch) | |
tree | c56343a0638ff4500d89ef718629a5e81d5665f6 /textproc/mdoclint | |
parent | 2074ff6c1959a34f3de8166569cd6a021a39fdc9 (diff) | |
download | pkgsrc-57020e0d346bcda9c398cbcef4486906047a879b.tar.gz |
Recognize DragonFlyBSD. From Jan Stary <hans@stare.cz>.
Bump version.
Diffstat (limited to 'textproc/mdoclint')
-rw-r--r-- | textproc/mdoclint/Makefile | 4 | ||||
-rwxr-xr-x | textproc/mdoclint/files/mdoclint | 12 | ||||
-rwxr-xr-x | textproc/mdoclint/files/mdoclint.1 | 8 |
3 files changed, 14 insertions, 10 deletions
diff --git a/textproc/mdoclint/Makefile b/textproc/mdoclint/Makefile index 3ae8600b314..6a24efe1f78 100644 --- a/textproc/mdoclint/Makefile +++ b/textproc/mdoclint/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.30 2013/07/30 19:09:00 wiz Exp $ +# $NetBSD: Makefile,v 1.31 2013/08/21 11:22:15 wiz Exp $ -DISTNAME= mdoclint-1.22 +DISTNAME= mdoclint-1.23 CATEGORIES= textproc MASTER_SITES= # none DISTFILES= # none diff --git a/textproc/mdoclint/files/mdoclint b/textproc/mdoclint/files/mdoclint index b2d6f3f0a8b..335d742eec1 100755 --- a/textproc/mdoclint/files/mdoclint +++ b/textproc/mdoclint/files/mdoclint @@ -1,7 +1,7 @@ #!@PERL5@ # # $OpenBSD: mdoclint,v 1.14 2009/04/13 12:40:05 espie Exp $ -# $NetBSD: mdoclint,v 1.40 2013/08/05 10:08:25 wiz Exp $ +# $NetBSD: mdoclint,v 1.41 2013/08/21 11:22:15 wiz Exp $ # # Copyright (c) 2001-2013 Thomas Klausner # All rights reserved. @@ -82,7 +82,7 @@ usage: mdoclint [-$options] file ... -s warn about whitespace problems -v verbose output -w show section header in warnings - -X warn about explicit mentions of FreeBSD, NetBSD, or OpenBSD + -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 @@ -93,6 +93,7 @@ EOF my %short = ( "Free" => ".Fx", "Net" => ".Nx", + "DragonFly" => ".Dx", "Open" => ".Ox" ); @@ -523,15 +524,16 @@ sub process_line } } - if (/\b(Free|Net|Open)BSD\b/o - and not /\b(?:www|ftp)\.(?:Free|Net|Open)BSD\.org\b/o + 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 (Net)/o)) { + 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; } diff --git a/textproc/mdoclint/files/mdoclint.1 b/textproc/mdoclint/files/mdoclint.1 index 35f2d9ad4cd..2486447be2a 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.12 2013/08/05 07:37:14 wiz Exp $ +.\" $NetBSD: mdoclint.1,v 1.13 2013/08/21 11:22:15 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 July 30, 2013 +.Dd August 21, 2013 .Dt MDOCLINT 1 .Os .Sh NAME @@ -129,12 +129,14 @@ in warnings. Warn about explicit mentions of the words .Dq FreeBSD , .Dq NetBSD , +.Dq DragonFlyBSD , and .Dq OpenBSD , -which should be replaced by .Fx, .Nx, and .Ox respectively. +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. |