diff --git a/share/man/man8/MAKEDEV2manpage.pl b/share/man/man8/MAKEDEV2manpage.pl index 421e0d0d1e54..2c9913b36e4a 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.7 2001/06/26 02:28:21 hubertf Exp $ +# $NetBSD: MAKEDEV2manpage.pl,v 1.8 2001/09/05 23:53:22 wiz Exp $ # # Copyright (c) 1999 # Hubert Feyrer . All rights reserved. @@ -37,7 +37,7 @@ ########################################################################### # # Convert src/etc/etc.${ARCH}/MAKEDEV and -# src/share/man/man8/MAKEDEV.8.template to +# src/share/man/man8/MAKEDEV.8.template to # src/share/man/man8/man8.${ARCH}/MAKEDEV.8, replacing # - @@@SPECIAL@@@ with all targets in the first section (all, std, ...) # - @@@DEVICES@@@ with the remaining targets @@ -58,12 +58,12 @@ sub read1line } else { $h = ; } - - # Skip empty lines + + # Skip empty lines while ($h =~ /^#\s*$/) { $h = ; } - + if ($h =~ /^#\s/) { if ($h =~ /^# /) { # Not a device/other target @@ -101,7 +101,7 @@ sub do_special $l=read1line(); while($l =~ /^#\t/) { $l =~ s/#\s+//; - + ($target, @line) = split(/\s+/, $l); $l = join(" ", @line); @@ -110,11 +110,11 @@ sub do_special $l =~ s/^(.)/\u$1/; # uppercase first word print MANPAGE ".It Ar $target\n"; print MANPAGE "$l\n"; - + $l = read1line(); } $_lastline = $l; # unread - + print MANPAGE ".El\n"; } @@ -127,13 +127,13 @@ sub do_devices $l = read1line(); do { $l =~ s/#\s+//; - print MANPAGE ".It $l"; # Print section heading + print MANPAGE ".It $l"; # Print section heading $l = read1line(); print MANPAGE ". Bl -tag -width 0123456789 -compact\n"; while($l =~ /^#\t/) { $l =~ s/#\s+//; - + ($target, @line) = split(/\s+/, $l); $target =~ s/\*/#/; $l = join(" ", @line); @@ -165,7 +165,7 @@ sub do_devices print MANPAGE ". It Ar $target\n"; print MANPAGE "$l\n"; - + $l = read1line(); } print MANPAGE ". El\n"; @@ -207,7 +207,7 @@ sub doarch print MANPAGE ".\\\"\n"; open(MAKEDEV, "../../../etc/etc.${arch}/MAKEDEV") or die; - + open(TEMPLATE, "MAKEDEV.8.template") or die; while(