3 # $FreeBSD: src/etc/periodic/weekly/330.catman,v 1.5.2.5 2002/04/15 00:44:16 dougb Exp $
4 # $DragonFly: src/etc/periodic/weekly/330.catman,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_catman_enable" in
17 if [ ! -d /usr/share/man/cat1 ]
19 echo '$weekly_catman_enable is set but /usr/share/man/cat1' \
24 echo "Reformatting manual pages:"
26 MANPATH=`/usr/bin/manpath -q`
29 if [ -z "${MANPATH}" ]
31 echo "manpath failed to find any manpath directories"
34 man_locales=`/usr/bin/manpath -qL`
37 # Preformat original, non-localized manpages
38 echo /usr/libexec/catman.local "$MANPATH" |
41 # Preformat localized manpages.
42 if [ -n "$man_locales" ]
46 echo /usr/libexec/catman.local -L \
47 "$MANPATH" | LC_ALL=$i su -fm man || rc=3