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

if ( test $# -eq 0 )
then
 echo "The use of usp forces execution of the USP version of "
 echo "usp-program-name, if it exists."
 echo " "
 echo "Usage: usp usp-program-name"
 echo " "
fi

APP=$1
shift

. usp-set-path

export APPDIR OSARCH_VENDOR OSARCH_MAJOR_OS_REV OSARCH_MINOR_OS_REV \
	OSARCH_OS  OSARCH_OS_REV OSARCH_HARDWARE

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