#!/bin/sh

# WARNING: This files contents will be replaced during fixpack installation,
# changes will not be retained.

# Environment helper for gsk8{ver,ikm,cmd,capicmd}

# Set JAVA_HOME to installed jvm. When the post-installer is WebSphere
# This variable ends in the jre/ sub-directory.

if [ -d "@@JAVADIR@@" ]; then
  JAVA_HOME="@@JAVADIR@@"
  export JAVA_HOME
fi

# Normalize when postinstaller is passed a JAVADIR that is above the JRE.
if [ -d "@@JAVADIR@@/jre" ]; then
  JAVA_HOME="@@JAVADIR@@/jre"
  export JAVA_HOME
fi

binDir=`dirname $0`
if [ -x "$binDir/setupCmdLine.sh" ]; then
  WAS_HOME=@@SERVERROOT@@
  . $binDir/setupCmdLine.sh
  if [ -f $JAVA_HOME/jre/bin/ikeyman ]; then
    JAVA_HOME=$JAVA_HOME/jre/
  fi
fi

PATH=$JAVA_HOME/bin:$PATH

APARCH=`uname -m`
APOS=`uname -s`

# This release is always 64-bit on unix platforms.
IHS_GSK_ARCH=64
AP_ADD_GSK="@@SERVERROOT@@/gsk8/lib64"

if test "x$@@SHLIBPATH_ENVAR@@" != "x"; then
  @@SHLIBPATH_ENVAR@@=$AP_ADD_GSK:$@@SHLIBPATH_ENVAR@@
else
  @@SHLIBPATH_ENVAR@@=$AP_ADD_GSK
fi
export @@SHLIBPATH_ENVAR@@

