#!@SHELL@

if [ ! $TANGO_HOST ] && [ -f @TANGO_RC_FILE@ ]; then
   . @TANGO_RC_FILE@
fi

JAVALIB=@prefix@/share/java;
JAVABIN=@prefix@/share/java;
CLASSPATH=$JAVALIB/JTango.jar:$JAVALIB/ATKWidget.jar:$JAVALIB/ATKCore.jar:$JAVABIN/Jive.jar:$JAVABIN/ATKPanel.jar:$JAVABIN/DeviceTree.jar
export CLASSPATH
LOGBACK=${TANGO_LOGBACK:-@prefix@/share/tango/logback.xml}

echo  Running Device Tree...
@JAVA@ \
    -DTANGO_HOST=$TANGO_HOST \
    -Dlogback.configurationFile="$LOGBACK" \
    explorer.Main \
    "$@"
