#!/bin/sh
################################################################################
# Figure out where this script is located

scriptPath="$0"
link=`readlink "${scriptPath}"`
while [ "${link}" != "" ]
do
   case "${link}" in
      /*) scriptPath="${link}";;
      *)  scriptPath=`dirname "${scriptPath}"`/"${link}";;
   esac
   link=`readlink "${scriptPath}"`
done

scriptDir=`dirname "${scriptPath}"`

# Call setAptEnv to define lib and javaCommand. Note that it *requires* scriptDir to be defined
. "${scriptDir}/setAptEnv"

# Now we can run the DG
"${javaCommand}" -Xms64m -Xmx1300m \
    -cp "$lib/APT.jar" \
    edu.stsci.orbitplanner.DG.DgPanel "$@"
