home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1999 March B
/
SCO_CASTOR4RRT.iso
/
scohelp
/
install
/
request
< prev
Wrap
Text File
|
1998-08-19
|
1KB
|
71 lines
#! /bin/sh
#ident "%w% 97/11/10"
FAILURE=1
trap 2 3 15
#
# Make sure LANG environment variable is set. If it's not set
# coming in to this request script, then default to the C-locale.
#
[ ${LANG} ] || LANG="C"
export LANG
MENU_RESP=$1
if [ "${MENU_RESP}" = "" ]
then
echo No response file given. Usage: $0 response-file
exit 1
fi
# determine target release
urel=`uname -r`
if [ $urel = "5" ]
then
# native Gemini
CLASSES="unative uaddon"
HOST=UW7
elif [ $urel = "4.2MP" ]
then
# UnixWare - pre-Gemini
uvers=`uname -v`
vers20=`expr "$uvers" : '2\.0'`
if [ $vers20 != "0" -o $uvers = "2.1" -o $uvers = "2.1.1" ]
then
echo "Installation requires UnixWare version 2.1.2"
exit $FAILURE
else
CLASSES="unative uw2"
HOST=UW2
fi
else
echo "Illegal release for installation"
exit $FAILURE
fi
#
# verify dependencies
if [ $HOST = "UW2" ]
then
pkginfo -i UW2compat > /dev/null 2>&1
if [ $? -ne 0 ]
then
echo "The UW2compat package should be installed"
# echo "The UW2compat package must be installed before scohelp"
# exit $FAILURE
fi
else
pkginfo -i base > /dev/null 2>&1
if [ $? -ne 0 ]
then
echo "The base package must be installed before scohelp"
exit $FAILURE
fi
fi
[ "$CLASSES" ] || exit 77
echo CLASSES=\"${CLASSES}\" >> ${MENU_RESP}
exit 0