summaryrefslogtreecommitdiff
path: root/regress/usr.bin/mdoclint
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2013-03-14 21:47:58 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2013-03-14 21:47:58 +0000
commit932e02657d8cd360e974e0e0ca403b15cb0be291 (patch)
tree5e409745259818ff2c39b71f20fc0b504c49c5d1 /regress/usr.bin/mdoclint
parent975783356996c540a0cf069bd12ff5db8a2c88d0 (diff)
more or less sync to latest netbsd revision (1.29):
- libj -> libmj (my error) - fix some incorrect warnings about `new sentence, new line' (1.25) stuff we don;t have: - the -A and -O options (not fully implemented on netbsd anyway) - $order (not currently used on netbsd) also we have a couple of fixes not yet in netbsd: - -l added correctly to usage - correct line number reporting for dup rcs ids
Diffstat (limited to 'regress/usr.bin/mdoclint')
-rw-r--r--regress/usr.bin/mdoclint/mdoclint12
1 files changed, 7 insertions, 5 deletions
diff --git a/regress/usr.bin/mdoclint/mdoclint b/regress/usr.bin/mdoclint/mdoclint
index e1e10505a59..bc54f2a34df 100644
--- a/regress/usr.bin/mdoclint/mdoclint
+++ b/regress/usr.bin/mdoclint/mdoclint
@@ -1,7 +1,7 @@
#!/usr/bin/perl
#
-# $OpenBSD: mdoclint,v 1.30 2013/03/14 21:37:00 jmc Exp $
-# $NetBSD: mdoclint,v 1.24 2013/03/06 22:09:01 wiz Exp $
+# $OpenBSD: mdoclint,v 1.31 2013/03/14 21:47:57 jmc Exp $
+# $NetBSD: mdoclint,v 1.29 2013/03/10 22:14:40 wiz Exp $
#
# Copyright (c) 2001-2013 Thomas Klausner
# All rights reserved.
@@ -121,7 +121,7 @@ my %libraries = (
"libmagic" => 1,
"libmandoc" => 1,
"libmenu" => 1,
- "libj" => 1,
+ "libmj" => 1,
"libnetpgp" => 1,
"libnetpgpverify" => 1,
"libnpf" => 1,
@@ -519,8 +519,10 @@ sub process_line
$s->warning(".Nd ends with a dot: `$_'") if $opt_n;
}
- if (/\w\w\.\s+[A-Z]/o) {
- $s->warning("new sentence, new line: `$_'") if $opt_p;
+ 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;
+ }
}
if (/^\... .*[^\s][\.();,\[\]\{\}:]$/o
and not /\s\.\.\.$/o and not /\\&.$/o) {