#! /usr/bin/ksh
# %Z%%M% %I%  %G% %U% SMI
# Copyright 1996 Sun Microsystems, Inc.
#
# This prepatch script determins the value of 3 variables of the
# installed package.
#
# Check to see if there is an established response file. There should be!

RESPONSE_FILE=/tmp/response.$PPID
if [[ ! -f $RESPONSE_FILE ]]; then
    echo "No response file. Exiting"
    exit 1
fi

#Set the needed variables
CLASSES=`pkgparam SUNWsjs CLASSES`
SYBDIR=`pkgparam SUNWsjs SYBDIR`

#Insert the variable vaules into the response file.
cat >> $RESPONSE_FILE <<EOF
CLASSES=$CLASSES
SYBDIR=$SYBDIR
EOF

exit 0
