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
|
|
|
#
|
|
|
|
|
2000-06-23 01:18:31 +00:00
|
|
|
# If there is a global system configuration file, suck it in.
|
|
|
|
#
|
|
|
|
if [ -r /etc/defaults/periodic.conf ]
|
|
|
|
then
|
|
|
|
. /etc/defaults/periodic.conf
|
|
|
|
source_periodic_confs
|
|
|
|
fi
|
1997-08-16 17:04:02 +00:00
|
|
|
|
2000-06-23 01:18:31 +00:00
|
|
|
case "$weekly_catman_enable" in
|
|
|
|
[Yy][Ee][Ss])
|
|
|
|
if [ -x /usr/libexec/catman.local -a -d /usr/share/man/cat1 -a \
|
|
|
|
-x /usr/bin/manpath ]
|
|
|
|
then
|
|
|
|
echo ""
|
|
|
|
echo "Reformatting manual pages:"
|
1997-08-17 17:55:45 +00:00
|
|
|
|
2000-06-23 01:18:31 +00:00
|
|
|
MANPATH=`/usr/bin/manpath -q`
|
|
|
|
if [ $? = 0 ]
|
|
|
|
then
|
|
|
|
if [ "x${MANPATH}" = "x" ]
|
|
|
|
then
|
|
|
|
echo "manpath failed to find any manpath directories"
|
|
|
|
else
|
|
|
|
man_locales=`/usr/bin/manpath -qL`
|
1999-09-11 18:55:02 +00:00
|
|
|
|
2000-06-23 01:18:31 +00:00
|
|
|
# Preformat original, non-localized manpages
|
|
|
|
echo /usr/libexec/catman.local "$MANPATH" | su -fm man
|
1999-09-11 18:55:02 +00:00
|
|
|
|
2000-06-23 01:18:31 +00:00
|
|
|
# Preformat localized manpages.
|
|
|
|
if [ X"$man_locales" != X ]
|
|
|
|
then
|
|
|
|
for i in $man_locales
|
|
|
|
do
|
|
|
|
LC_CTYPE=$i echo /usr/libexec/catman.local -L \
|
|
|
|
"$MANPATH" | su -fm man
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi;;
|
|
|
|
esac
|