#!/bin/sh 
########################################################################
#                 copyright 2001, Amoco Production Company             #
#                             All Rights Reserved                      #
#                     an affiliate of BP America Inc.                  #
########################################################################
#
# This script is a part of FreeUSP - the UNIX Seismic Processing system.
#
#
if test ${OSARCH_VENDOR:-"not set"} = "not set"
then
  . usp-osarch.sh
fi

if test ${APPDIR:-"not set"} = "not set"
then
 APPDIR=`app-path $0`
fi

# if LD_LIBRARY_PATH is already set, prepend to it

LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+"${APPDIR}/${OSARCH_OS}/${OSARCH_MAJOR_OS_REV}.${OSARCH_MINOR_OS_REV}/usp/lib:${LD_LIBRARY_PATH}"}

# if LD_LIBRARY_PATH is not set, set it

LD_LIBRARY_PATH=${LD_LIBRARY_PATH:="${APPDIR}/${OSARCH_OS}/${OSARCH_MAJOR_OS_REV}.${OSARCH_MINOR_OS_REV}/usp/lib"}

export LD_LIBRARY_PATH

if test ${APP:-"not set"} != "feedback"
then
USP_AUDIT_ADMIN="joe@freeusp.org"
USP_AUDIT_SUBJECT="USP-AUDIT"
fi

export USP_AUDIT_ADMIN USP_AUDIT_SUBJECT

case "${OSARCH_VENDOR}" in
#  sun4  )
#	   PSCHOME=/data/gpss89/data2/Panther
#	   PSCDHOST=gpss89
#	   export PSCHOME PSCDHOST
#	   USP_MONITOR_CMD="${PSCHOME}/bin/pscmon ${PROG}";;
# Sun*  ) USP_MONITOR_CMD="usp feedback";;
  Sun*  ) USP_MONITOR_CMD=${USP_MONITOR_CMD:-""};;
  SGI* ) USP_MONITOR_CMD=${USP_MONITOR_CMD:-""};;
  HP*   ) USP_MONITOR_CMD=${USP_MONITOR_CMD:-""};;
  Convex* ) USP_MONITOR_CMD=${USP_MONITOR_CMD:-""};;
  Linux*) USP_MONITOR_CMD=${USP_MONITOR_CMD:-""};;
  *     ) USP_MONITOR_CMD=${USP_MONITOR_CMD:-""};;
esac

: ${DIST_PRODUCT:="usp"}
#
# if USP_DIST_VERSION is set, use it, otherwise use DIST_VERSION.
# if neither is set, use "prod" as a default
#
DIST_VERSION=${DIST_VERSION:="prod"}
DIST_VERSION=${USP_DIST_VERSION:-"${DIST_VERSION}"}
