#!/bin/csh -f
source build-opt-env

rm -rf $USETEMPDIR
#
# cleanplot called with object as path_info
#  appended with name of the program to call
#
set objplusprog=$PATH_INFO
#
# re-set to a proper PATH_INFO
#
setenv PATH_INFO $objplusprog:r
#
# get the program from object by removing all but .xxx, which is program
#
exec ${OPTHOME}/${OPTRUNDIR}/$objplusprog:e
