#!/bin/sh
prog=`basename $0`

LOGFILE=/var/sadm/install/logs/${PKG}.log

[ -f /tmp/${PKGINST}.dbg ] && {
	debug="true"
}
[ -n "$debug" ] && echo  "entering $prog" 1>&2

if [ "$QUIETMODE" = "false" ]
then
	echo
	echo "Please wait while the documentation is reconfigured."
	echo
fi

/usr/man/bin/config_help -n -L en_US.ISO8859-1 ${PKGINST} >/dev/null 2>&1
/usr/man/bin/config_views -L en_US.ISO8859-1 >/dev/null 2>&1
#/usr/man/bin/config_man -L en_US.ISO8859-1 >/dev/null 2>&1

if [ "$QUIETMODE" = "false" ]
then
	echo
	echo "Configuration of $PKGINST documentation is complete."
	echo
	echo "At a shell prompt, log in as root and run the command"
	echo "'/usr/man/bin/config_man' to re-generate the"
	echo "search index, so that it includes entries for the"
	echo "documentation you just added."
	echo
fi

[ -n "$debug" ] && echo  "leaving $prog" 1>&2
exit 0
