Teach makewhatis(1) about mdoc(7) .Xr macro.

% whatis finger.conf
finger.conf(5) - finger 1 alias configuration file

% whatis finger.conf
finger.conf(5) - finger(1) alias configuration file

Reviewed by:	MAINTAINER timeout
This commit is contained in:
ru 2001-08-09 15:12:59 +00:00
parent edf518377f
commit 8c03b77cd5

View File

@ -370,9 +370,15 @@ sub manual {
} else {
$list .= '- ' if (!$flag && !/^- /);
$flag++;
s/^\.[A-Z][a-z][ \t]*//;
s/[ \t]+$//;
$list .= $_;
if (/^\.Xr/) {
split;
$list .= @_[1];
$list .= "(@_[2])" if @_[2];
} else {
s/^\.[A-Z][a-z][ \t]*//;
s/[ \t]+$//;
$list .= $_;
}
$list .= ' ';
}
}