From b569c48c1631e8f292be715c33f26dc0de072e53 Mon Sep 17 00:00:00 2001 From: hubertf Date: Tue, 26 Jun 2001 02:03:08 +0000 Subject: [PATCH] Try cross-referencing our VAX and/or hp300 port's ct(4) manpage: .Xr ct 4 ^- This does not work, as "ct" is some *roff command. Work around it by adding a non-printing char: .Xr c\&t 4 (for all manpages, just in case and out of laziness) --- share/man/man8/MAKEDEV2manpage.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/share/man/man8/MAKEDEV2manpage.pl b/share/man/man8/MAKEDEV2manpage.pl index b3b62afef660..672b656f5b65 100644 --- a/share/man/man8/MAKEDEV2manpage.pl +++ b/share/man/man8/MAKEDEV2manpage.pl @@ -1,6 +1,6 @@ #!/usr/pkg/bin/perl # -# $NetBSD: MAKEDEV2manpage.pl,v 1.5 2001/04/16 08:08:19 wiz Exp $ +# $NetBSD: MAKEDEV2manpage.pl,v 1.6 2001/06/26 02:03:08 hubertf Exp $ # # Copyright (c) 1999 # Hubert Feyrer . All rights reserved. @@ -159,7 +159,9 @@ sub do_devices $l .= "$page(4)"; } - while ($l =~ s/\s*(\w+)\((\d)\)(.*)/\n.Xr \1 \2 \3/g){$l =~ s/[ \t]+$//g;} + # Add .Xr f\&oo 4 - ampersand to work around manpages that are + # *roff commands at the same time + while ($l =~ s/\s*(\w)(\w*)\((\d)\)(.*)/\n.Xr \1\\&\2 \3 \4/g){$l =~ s/[ \t]+$//g;} print MANPAGE ". It Ar $target\n"; print MANPAGE "$l\n";