1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-04 09:09:56 +00:00

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:
Ruslan Ermilov 2001-08-09 15:12:59 +00:00
parent 95d6ec368c
commit b07badb7bd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=81355

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 .= ' ';
}
}