diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2017-06-03 12:23:14 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2017-06-03 12:23:14 +0000 |
commit | c3ad14f684a003e9bfeff92cb2055a9c23605b03 (patch) | |
tree | 3945a1e1c868469a911909cfbe89700ce0757788 | |
parent | 0053de530a804dc91ec2915574479db050c56215 (diff) |
delete -n option, now covered by mandoc; OK jmc@
-rw-r--r-- | regress/usr.bin/mdoclint/mdoclint | 21 | ||||
-rw-r--r-- | regress/usr.bin/mdoclint/mdoclint.1 | 11 |
2 files changed, 11 insertions, 21 deletions
diff --git a/regress/usr.bin/mdoclint/mdoclint b/regress/usr.bin/mdoclint/mdoclint index 793cac98636..d1aa95c3dfe 100644 --- a/regress/usr.bin/mdoclint/mdoclint +++ b/regress/usr.bin/mdoclint/mdoclint @@ -1,6 +1,6 @@ #!/usr/bin/perl # -# $OpenBSD: mdoclint,v 1.65 2017/06/01 14:55:24 schwarze Exp $ +# $OpenBSD: mdoclint,v 1.66 2017/06/03 12:23:13 schwarze Exp $ # $NetBSD: mdoclint,v 1.74 2017/06/01 14:38:50 wiz Exp $ # # Copyright (c) 2001-2017 Thomas Klausner @@ -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/regress/usr.bin/mdoclint/mdoclint.1 b/regress/usr.bin/mdoclint/mdoclint.1 index c6faca2bc5b..a71b599a9c2 100644 --- a/regress/usr.bin/mdoclint/mdoclint.1 +++ b/regress/usr.bin/mdoclint/mdoclint.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: mdoclint.1,v 1.23 2017/06/01 14:55:24 schwarze Exp $ +.\" $OpenBSD: mdoclint.1,v 1.24 2017/06/03 12:23:13 schwarze Exp $ .\" $NetBSD: mdoclint.1,v 1.20 2017/06/01 14:38:50 wiz Exp $ .\" .\" Copyright (c) 2001-2013 Thomas Klausner @@ -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 $Mdocdate: June 1 2017 $ +.Dd $Mdocdate: June 3 2017 $ .Dt MDOCLINT 1 .Os .Sh NAME @@ -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 DdmnoprSx +.Fl DdmoprSx is assumed (that is, everything except .Fl eFhlvw ) . .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 |