#!/bin/sh
# @(#)checkinstall 1.5 02/02/27 SMI
# Copyright 2002 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
# checkinstall for SUNWsdocs

REQ_PKG="SUNWsdocs"

if [ "${PKG_INSTALL_ROOT:-/}" = "/" ]; then
	pkginfo -q $REQ_PKG 
	if [ $? -ne 0 ]; then
		echo "$REQ_PKG has not been installed."
		echo "Please install the $REQ_PKG package."
		echo "Then try this installation again."
		exit 3
	else
		exit 0
	fi
else
	pkginfo -R ${PKG_INSTALL_ROOT} -q $REQ_PKG
	if [ $? -ne 0 ]; then
		echo "$REQ_PKG has not been installed."
		echo "Please install the $REQ_PKG package."
		echo "Then try this installation again."
		exit 3
	else
		exit 0
	fi
fi
