1997-08-16 17:04:02 +00:00
|
|
|
#!/bin/sh -
|
|
|
|
#
|
1999-08-27 23:37:10 +00:00
|
|
|
# $FreeBSD$
|
1997-08-16 17:04:02 +00:00
|
|
|
#
|
|
|
|
|
1999-09-11 18:55:02 +00:00
|
|
|
if [ -x /usr/libexec/makewhatis.local -a -x /usr/bin/manpath ]; then
|
1997-08-16 17:04:02 +00:00
|
|
|
|
|
|
|
echo ""
|
|
|
|
echo "Rebuilding whatis database:"
|
|
|
|
|
1998-01-09 23:56:45 +00:00
|
|
|
MANPATH=`/usr/bin/manpath -q`
|
|
|
|
if [ $? = 0 ]; then
|
|
|
|
if [ "x${MANPATH}" = "x" ]; then
|
|
|
|
echo "manpath failed to find any manpage directories"
|
|
|
|
else
|
1999-11-23 03:21:19 +00:00
|
|
|
man_locales=`/usr/bin/manpath -qL`
|
1999-09-11 18:55:02 +00:00
|
|
|
|
|
|
|
# Build whatis(1) database(s) for original, non-localized manpages.
|
1998-01-09 23:56:45 +00:00
|
|
|
/usr/libexec/makewhatis.local "${MANPATH}"
|
1999-09-11 18:55:02 +00:00
|
|
|
|
|
|
|
# Build whatis(1) database(s) for localized manpages.
|
1999-11-23 03:21:19 +00:00
|
|
|
if [ X"${man_locales}" != X ]; then
|
1999-09-11 18:55:02 +00:00
|
|
|
for i in ${man_locales}
|
|
|
|
do
|
|
|
|
LC_CTYPE=$i /usr/libexec/makewhatis.local -a -L "${MANPATH}"
|
|
|
|
done
|
|
|
|
fi
|
1998-01-09 23:56:45 +00:00
|
|
|
fi
|
1997-08-16 17:04:02 +00:00
|
|
|
fi
|
|
|
|
fi
|