home *** CD-ROM | disk | FTP | other *** search
/ chilidog.highland.cc.ks.us / chilidog.highland.cc.ks.us.zip / chilidog.highland.cc.ks.us / backup / bradford.20110502.etc.tar.gz / bradford.20110502.etc.tar / etc / cron.daily / suse-do_mandb < prev    next >
Text File  |  2006-04-22  |  1KB  |  54 lines

  1. #!/bin/sh
  2. #
  3. #
  4. # do_mandb. This script was split off cron.daily.
  5. # Please add your local changes to cron.daily.local
  6. # since this file will be overwritten, when updating your system.
  7. #
  8. # Copyright (c) 1996-2002 SuSE GmbH Nuernberg, Germany.   
  9. #
  10. # please send bugfixes or comments to feedback@suse.de.
  11. #
  12. # Author: Burchard Steinbild <feedback@suse.de>, 1996
  13. #         Florian La Roche <feedback@suse.de>, 1996
  14. #
  15.  
  16. #
  17. # paranoia settings
  18. #
  19. umask 022
  20.  
  21. PATH=/sbin:/bin:/usr/sbin:/usr/bin
  22. export PATH
  23.  
  24. #
  25. # get information from /etc/sysconfig/cron
  26. #
  27. if test -f /etc/sysconfig/cron ; then
  28.     . /etc/sysconfig/cron
  29. fi
  30.  
  31.  
  32. #
  33. # now we do the man page stuff
  34. #
  35. if test "$REINIT_MANDB" = yes -o ! -s /var/cache/man/index.db ; then
  36.     if test -x /usr/bin/mandb ; then
  37.     test -x /usr/bin/safe-rm -a -e /var/cache/man/index.bt && \
  38.         /usr/bin/safe-rm /var/cache/man/index.bt
  39.     /usr/bin/mandb -q -s 2> /dev/null || {
  40.         echo There seem to be trouble with mandb.
  41.         echo
  42.         echo please run /usr/bin/mandb an check the output...
  43.     }
  44.     fi
  45.     #
  46.     # some applications need whatis database. If makewhatis exists, call it
  47.     #
  48.     if test -x /usr/sbin/makewhatis ; then
  49.     /usr/sbin/makewhatis
  50.     fi
  51. fi
  52.  
  53. exit 0
  54.