summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2008-11-03 12:17:02 +0000
committerMarc Espie <espie@cvs.openbsd.org>2008-11-03 12:17:02 +0000
commit31f3650beb3901c134f444e4fa9a987b35a4ce34 (patch)
treefc0e46f04f4687af0dc89e4326ae0129f8a1aea2
parent300b99e8eb13e8581ee08645426be4f412369077 (diff)
handle Xrefs to XFree as well
okay grunk@, jmc@
-rw-r--r--regress/usr.bin/mdoclint/mdoclint7
-rw-r--r--regress/usr.bin/mdoclint/mdoclint.18
2 files changed, 10 insertions, 5 deletions
diff --git a/regress/usr.bin/mdoclint/mdoclint b/regress/usr.bin/mdoclint/mdoclint
index 51099062a97..f5cee691d10 100644
--- a/regress/usr.bin/mdoclint/mdoclint
+++ b/regress/usr.bin/mdoclint/mdoclint
@@ -1,6 +1,6 @@
#!/usr/bin/perl
#
-# $OpenBSD: mdoclint,v 1.8 2008/11/03 12:14:46 espie Exp $
+# $OpenBSD: mdoclint,v 1.9 2008/11/03 12:17:01 espie Exp $
# $NetBSD: mdoclint,v 1.18 2008/01/05 09:03:50 wiz Exp $
#
# Copyright (c) 2001-2008 Thomas Klausner
@@ -126,11 +126,14 @@ sub verify_xref {
my $xreftarget = "/usr/share/man/cat$_[2]/$_[1].0";
my $xreftarget2 = "/usr/share/man/cat$_[2]/$arch/$_[1].0";
my $xreftarget3 = "./$_[1].$_[2]";
+ my $xreftarget4 = "/usr/X11R6/man/cat$_[2]/$_[1].0";
+ my $xreftarget5 = "/usr/X11R6/man/man$_[2]/$_[1].$_[2]";
if ("$_[1].$_[2]" eq $fn) {
warning("Xref to itself (use .Nm instead)");
}
if (not -f $xreftarget and not -f $xreftarget2
- and not -f $xreftarget3) {
+ and not -f $xreftarget3
+ and not -f $xreftarget4 and not -f $xreftarget5) {
warning("$_[0]trailing Xref to $_[1]($_[2])$_[3]");
return 0;
}
diff --git a/regress/usr.bin/mdoclint/mdoclint.1 b/regress/usr.bin/mdoclint/mdoclint.1
index 5e9b3eb0826..44d7dbceb1e 100644
--- a/regress/usr.bin/mdoclint/mdoclint.1
+++ b/regress/usr.bin/mdoclint/mdoclint.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: mdoclint.1,v 1.3 2008/11/01 07:49:54 jmc Exp $
+.\" $OpenBSD: mdoclint.1,v 1.4 2008/11/03 12:17:01 espie Exp $
.\" $NetBSD: mdoclint.1,v 1.3 2003/05/09 09:22:05 wiz Exp $
.\"
.\" Copyright (c) 2001, 2002, 2003 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: November 1 2008 $
+.Dd $Mdocdate: November 3 2008 $
.Os
.Dt MDOCLINT 1
.Sh NAME
@@ -134,8 +134,10 @@ For
the following files are checked:
.Pa /usr/share/man/catX/name.0 ,
.Pa /usr/share/man/catX/`uname -m`/name.0 ,
+.Pa ./name.X ,
+.Pa /usr/X11R6/man/catX/name.0 ,
and
-.Pa ./name.X .
+.Pa /usr/X11R6/man/manX/name.X .
.El
.Sh SEE ALSO
.Xr mdoc 7 ,