diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2011-10-03 06:58:17 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2011-10-03 06:58:17 +0000 |
commit | 4ab9e58d7a1cae5f284791df5af422d55fa1c910 (patch) | |
tree | 884f3c2fbf9ee189f5bc64c42c90d63dd1ee702b /regress/usr.bin | |
parent | 09c2fcdb7e5c3ef9c3888395e5bda164eea18121 (diff) |
when checking Xrs, look in man* subdirs, not cat*;
code diff from wiz@netbsd
Diffstat (limited to 'regress/usr.bin')
-rw-r--r-- | regress/usr.bin/mdoclint/mdoclint | 5 | ||||
-rw-r--r-- | regress/usr.bin/mdoclint/mdoclint.1 | 9 |
2 files changed, 6 insertions, 8 deletions
diff --git a/regress/usr.bin/mdoclint/mdoclint b/regress/usr.bin/mdoclint/mdoclint index 142943470e7..74bbd70f9b4 100644 --- a/regress/usr.bin/mdoclint/mdoclint +++ b/regress/usr.bin/mdoclint/mdoclint @@ -1,6 +1,6 @@ #!/usr/bin/perl # -# $OpenBSD: mdoclint,v 1.22 2011/01/02 13:02:23 jmc Exp $ +# $OpenBSD: mdoclint,v 1.23 2011/10/03 06:58:16 jmc Exp $ # $NetBSD: mdoclint,v 1.12 2010/08/30 12:20:44 wiz Exp $ # # Copyright (c) 2001-2010 Thomas Klausner @@ -208,8 +208,7 @@ sub verify_xref for my $dir ("/usr/share/man", OPENBSD ? "/usr/X11R6/man" : "/usr/X11R7/man") { for my $a ("", $arch) { - for my $page ("cat$section/$a/$page.0", - "man$section/$a/$page.$section") { + for my $page ("man$section/$a/$page.$section") { return 1 if -f "$dir/$page"; } } diff --git a/regress/usr.bin/mdoclint/mdoclint.1 b/regress/usr.bin/mdoclint/mdoclint.1 index 06cc0fc2958..01f5f9d430b 100644 --- a/regress/usr.bin/mdoclint/mdoclint.1 +++ b/regress/usr.bin/mdoclint/mdoclint.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: mdoclint.1,v 1.11 2011/09/17 08:38:26 schwarze Exp $ +.\" $OpenBSD: mdoclint.1,v 1.12 2011/10/03 06:58:16 jmc Exp $ .\" $NetBSD: mdoclint.1,v 1.2 2009/04/13 22:18:13 wiz Exp $ .\" .\" Copyright (c) 2001-2010 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: September 17 2011 $ +.Dd $Mdocdate: October 3 2011 $ .Dt MDOCLINT 1 .Os .Sh NAME @@ -135,10 +135,9 @@ to itself, or plain bogus cross-references. For .Dq .Xr name X , the following files are checked: -.Pa /usr/share/man/catX/name.0 , -.Pa /usr/share/man/catX/`uname -m`/name.0 , +.Pa /usr/share/man/manX/name.X , +.Pa /usr/share/man/manX/`uname -m`/name.X , .Pa ./name.X , -.Pa /usr/X11R6/man/catX/name.0 , and .Pa /usr/X11R6/man/manX/name.X . .El |