3 # $FreeBSD: src/etc/periodic/weekly/320.whatis,v 1.5.2.3 2001/03/05 13:08:37 ru Exp $
4 # $DragonFly: src/etc/periodic/weekly/320.whatis,v 1.2 2003/06/17 04:24:48 dillon Exp $
7 # If there is a global system configuration file, suck it in.
9 if [ -r /etc
/defaults
/periodic.conf
]
11 .
/etc
/defaults
/periodic.conf
15 case "$weekly_whatis_enable" in
18 echo "Rebuilding whatis database:"
20 MANPATH
=`/usr/bin/manpath -q`
23 if [ -z "${MANPATH}" ]
25 echo "manpath failed to find any manpage directories"
28 man_locales
=`/usr/bin/manpath -qL`
31 # Build whatis(1) database(s) for original, non-localized
33 /usr
/libexec
/makewhatis.
local "${MANPATH}" || rc
=3
35 # Build whatis(1) database(s) for localized manpages.
36 if [ X
"${man_locales}" != X
]
38 for i
in ${man_locales}
40 LC_ALL
=$i /usr
/libexec
/makewhatis.
local -a \
41 -L "${MANPATH}" || rc
=3