diff options
author | wiz <wiz> | 2017-06-07 19:09:55 +0000 |
---|---|---|
committer | wiz <wiz> | 2017-06-07 19:09:55 +0000 |
commit | 23b7649a889a3b76ab6a34f0afcc1c9736942853 (patch) | |
tree | 0a89540f95b6f6ffe2538b3916fd6ec507310564 /textproc/mdoclint/files | |
parent | f81d2517631ef60863f7276dc5b76f026ff9bbc9 (diff) | |
download | pkgsrc-23b7649a889a3b76ab6a34f0afcc1c9736942853.tar.gz |
Remove -n, mandoc now has a warning for this case.
From Ingo Schwarze.
Bump version.
Diffstat (limited to 'textproc/mdoclint/files')
-rwxr-xr-x | textproc/mdoclint/files/mdoclint | 21 | ||||
-rwxr-xr-x | textproc/mdoclint/files/mdoclint.1 | 9 |
2 files changed, 10 insertions, 20 deletions
diff --git a/textproc/mdoclint/files/mdoclint b/textproc/mdoclint/files/mdoclint index 6edb94df285..992d175335c 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.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; diff --git a/textproc/mdoclint/files/mdoclint.1 b/textproc/mdoclint/files/mdoclint.1 index 206484091c3..684ce9c1205 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.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 arguments to Lb. 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 |