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

DIST_VERSION=`usparg -version "old" $*`

. usp-set-path

#
# had to add this crap for the old disco stuff if -version old is specified
#
if ( test "${dci_root}" = "") then
  if ( test "${OSARCH_OS}" = "SunOS") then
     dci_systype=SUN
  elif (test "${OSARCH_OS}" = "HP-UX") then
     dci_systype=HP
  fi
  dci_sitenam='hostname'
  dci_hpl=/
  dci_pldef=/
  dci_colordef=/
  dci_plshade=/
  dci_hcomdeb=/
fi

export dci_systype dci_sitenam dci_hpl dci_pldef dci_colordef dci_plshade dci_hcomdeb

XKEYSYMDB=${APPDIR}/etc/X11R6/XKeysymDB
XNLSPATH=${APPDIR}/etc/X11R6/nls

DEVELOPER_EMAIL="jwade@amoco.com"
DEVELOPER="Joe M. Wade"

HTML_DOCS=${APPDIR}/etc/${DIST_PRODUCT}/help/XMplot

XFILESEARCHPATH=${XFILESEARCHPATH:+"${APPDIR}/etc/${DIST_PRODUCT}/app-defaults/%N:$XFILESEARCHPATH"}
XFILESEARCHPATH=${XFILESEARCHPATH:="${APPDIR}/etc/${DIST_PRODUCT}/app-defaults/%N:$XFILESEARCHPATH"}

export HTML_DOCS PATH XFILESEARCHPATH XKEYSYMDB

# USP_MONITOR_CMD="usp feedback"

exec ${USP_MONITOR_CMD} ${APP} ${1:+"$@"}
