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
17 echo "Rebuilding whatis database:"
19 MANPATH=`/usr/bin/manpath -q`
22 if [ -z "${MANPATH}" ]
24 echo "manpath failed to find any manpage directories"
27 man_locales=`/usr/bin/manpath -qL`
30 # Build whatis(1) database(s) for original, non-localized
32 /usr/libexec/makewhatis.local "${MANPATH}" || rc=3
34 # Build whatis(1) database(s) for localized manpages.
35 if [ X"${man_locales}" != X ]
37 for i in ${man_locales}
39 LC_ALL=$i /usr/libexec/makewhatis.local -a \
40 -L "${MANPATH}" || rc=3