6 # If there is a global system configuration file, suck it in.
8 if [ -r /etc/defaults/periodic.conf ]
10 . /etc/defaults/periodic.conf
14 case "$weekly_whatis_enable" in
16 if [ -x /usr/libexec/makewhatis.local -a -x /usr/bin/manpath ]
19 echo "Rebuilding whatis database:"
21 MANPATH=`/usr/bin/manpath -q`
24 if [ "x${MANPATH}" = "x" ]
26 echo "manpath failed to find any manpage directories"
28 man_locales=`/usr/bin/manpath -qL`
30 # Build whatis(1) database(s) for original, non-localized
32 /usr/libexec/makewhatis.local "${MANPATH}"
34 # Build whatis(1) database(s) for localized manpages.
35 if [ X"${man_locales}" != X ]
37 for i in ${man_locales}
39 LC_CTYPE=$i /usr/libexec/makewhatis.local -a \