320.whatis revision 53619
1#!/bin/sh - 2# 3# $FreeBSD: head/etc/periodic/weekly/320.whatis 53619 1999-11-23 03:21:19Z ache $ 4# 5 6if [ -x /usr/libexec/makewhatis.local -a -x /usr/bin/manpath ]; then 7 8 echo "" 9 echo "Rebuilding whatis database:" 10 11 MANPATH=`/usr/bin/manpath -q` 12 if [ $? = 0 ]; then 13 if [ "x${MANPATH}" = "x" ]; then 14 echo "manpath failed to find any manpage directories" 15 else 16 man_locales=`/usr/bin/manpath -qL` 17 18 # Build whatis(1) database(s) for original, non-localized manpages. 19 /usr/libexec/makewhatis.local "${MANPATH}" 20 21 # Build whatis(1) database(s) for localized manpages. 22 if [ X"${man_locales}" != X ]; then 23 for i in ${man_locales} 24 do 25 LC_CTYPE=$i /usr/libexec/makewhatis.local -a -L "${MANPATH}" 26 done 27 fi 28 fi 29 fi 30fi 31