#!/bin/sh
#
# This script is part of the XAPRTOOLS suite of program - 
# a subset of FreeUSP - the UNIX Seismic Processing system.
#

if test ${OSARCH_VENDOR:-"not set"} = "not set"
 then
  . usp-osarch
fi
#
# Deleted this block upon migration to /apps/global. Full OS version
# is now used so we don't have to bother with minor revisions.
# Compatabilities are handled in usp-generic-set-path.
#
# if test "${OSARCH_OS}" = "SunOS"
#   then
#   if test "${OSARCH_MAJOR_OS_REV}" = "5" -a "${OSARCH_MINOR_OS_REV}" -ge 6
#     then
#         OSARCH_MAJOR_OS_REV=${OSARCH_MAJOR_OS_REV}.${OSARCH_MINOR_OS_REV}
#   fi
# fi

APPDIR=`app-path $0`

if test ${OSARCH_OS:="not set"} = "Linux" 
then
  LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+"${APPDIR}/${OSARCH_OS}/${OSARCH_MAJOR_OS_REV}.${OSARCH_MINOR_OS_REV}/usp/lib:${LD_LIBRARY_PATH}"}
  LD_LIBRARY_PATH=${LD_LIBRARY_PATH:="${APPDIR}/${OSARCH_OS}/${OSARCH_MAJOR_OS_REV}.${OSARCH_MINOR_OS_REV}/usp/lib"}
  export LD_LIBRARY_PATH
fi

USP_AUDIT_ADMIN="joe@freeusp.org"
USP_AUDIT_SUBJECT="XAPRTOOLS-AUDIT"

export USP_AUDIT_ADMIN USP_AUDIT_SUBJECT

# USP_MONITOR_CMD="usp feedback"
USP_MONITOR_CMD=""

DIST_PRODUCT="xaprtools"
DIST_VERSION="prod"
