diff options
author | ru <ru@FreeBSD.org> | 2001-08-09 15:12:59 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2001-08-09 15:12:59 +0000 |
commit | 8c03b77cd5f86af3919cb91171fbea728fbf7951 (patch) | |
tree | 214a9384b03e73c1836d0cee6bfccab12e7d0c5a /gnu | |
parent | edf518377ff049df7d92aa04705fa34ce99976ac (diff) | |
download | FreeBSD-src-8c03b77cd5f86af3919cb91171fbea728fbf7951.zip FreeBSD-src-8c03b77cd5f86af3919cb91171fbea728fbf7951.tar.gz |
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
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/man/makewhatis/makewhatis.perl | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/gnu/usr.bin/man/makewhatis/makewhatis.perl b/gnu/usr.bin/man/makewhatis/makewhatis.perl index 4a4ab44..599220e 100644 --- a/gnu/usr.bin/man/makewhatis/makewhatis.perl +++ b/gnu/usr.bin/man/makewhatis/makewhatis.perl @@ -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 .= ' '; } } |