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

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

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

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

if [ "$QUIETMODE" = "false" ]
then
	echo
	echo "At a shell prompt, log in as root and run the command"
	echo "'/usr/man/bin/config_search -f' 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" >> $LOGFILE

# for debug purposes, don't allow pkgadd to remove
# the logfile
[ -n "$debug" ] && cp $LOGFILE $LOGFILE.dbg

exit 0
