#! /bin/sh

#================================================================
# manregister
# Register all manual pages on the system into the index
#================================================================


# set variables
LANG=C ; export LANG
LC_ALL=C ; export LC_ALL


# find manuals and register them
man -w | tr ':' ' ' |
while read path
do
  find /usr -type f
done |
grep '/man[0-9][a-zA-Z]*/' |
estindex register -list - -tsuf "" -hsuf "" -msuf "" \
  -xsuf "*" application/x-troff-man estmanhtml casket


# add score information
estindex relate casket


# exit normally
exit 0



# END OF FILE
