# $Id$ if [ -z "$PKG_INSTALL_ROOT" -o "$PKG_INSTALL_ROOT" = "/" ]; then PARAM="" else PARAM="-R $PKG_INSTALL_ROOT" fi # we check for Studio home, only, since at least one working Java instance is # expected to be installed in the default location aka /usr/jdk STH="" pkginfo -q $PARAM SPROplsx if [ $? -eq 0 ]; then DIR=`pkgparam $PARAM SPROplsx BASEDIR` if [ -d "${DIR}/sunstudio12.1" -o -h "${DIR}/sunstudio12.1" ]; then STH="${DIR}/sunstudio12.1" elif [ -d "${DIR}/SUNWspro" -o -h "${DIR}/SUNWspro" ]; then STH="${DIR}/SUNWspro" fi elif [ -d "/opt/sunstudio12.1" -o -h "/opt/sunstudio12.1" ]; then STH="/opt/sunstudio12.1" fi if [ -n "$STH" ]; then echo "STUDIO_HOME=$STH" >>$1 fi STH="" pkginfo -q $PARAM SUNWompi if [ $? -eq 0 ]; then DIR=`pkgparam $PARAM SUNWompi BASEDIR` X=`/bin/ls -dt "$PKG_INSTALL_ROOT/$DIR/SUNWhpc/"HPC* | head -1` if [ -r "$X" ]; then BN=`basename $X` echo "OPAL_PREFIX=$DIR/SUNWhpc/$BN/sun" >>$1 fi fi