#! /bin/sh
#	@(#)postinstall	1.4 97/04/30  

PATH="/usr/bin:/usr/sbin:${PATH}"
export PATH

# catman is not present in the install boot environment.

if [ ! -f /usr/bin/catman ]; then
	exit 0
fi

# makewhatis needs /usr/lib/getNAME (bug ID 1164837)

if [ -x /usr/bin/catman ] && [ -x /usr/lib/getNAME ] 
then
	/usr/bin/catman -w -M $BASEDIR/SUNWrtvc/man
else
	echo "Warning: Can't automatically recreate windex files,"
	echo "  see the SunVideo User's Guide for instructions on"
	echo "  doing this manually"
fi
