handle man pages without SYNOPSIS but looking for both SYNOPSIS and

DESCRIPTION


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10756 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
2001-09-29 16:05:38 +00:00
parent 5e75a6ed64
commit d965b2e675

View File

@@ -24,7 +24,7 @@ for f in "$@"; do
eval "echo $INSTALL_DATA $srcdir/$c $catdir/$base.$suffix"
eval "$INSTALL_DATA $srcdir/$c $catdir/$base.$suffix"
fi
for link in `sed -n -e '/SYNOPSIS/q;s/^\.Nm \([^ ]*\).*/\1/p' $srcdir/$f`; do
for link in `sed -n -e '/SYNOPSIS/q;/DESCRIPTION/q;s/^\.Nm \([^ ]*\).*/\1/p' $srcdir/$f`; do
if [ "$link" != "$base" ]; then
target="$mandir/$link.$section"
for cmd in "ln -f $mandir/$base.$section $target" \