#! /bin/sh

PACKAGE_MAIN=org.herac.tuxguitar.gui.TGMain

if [ "$1" ]; then ARGS=$1
else ARGS=%%DATADIR%%/tuxguitar.tg; fi

CLASSPATH=${CLASSPATH}
CLASSPATH=${CLASSPATH}:%%DATADIR%%
CLASSPATH=${CLASSPATH}:%%DATADIR%%/tuxguitar.jar
CLASSPATH=${CLASSPATH}:%%JAVALIBDIR%%/swt.jar
CLASSPATH=${CLASSPATH}:%%JAVALIBDIR%%/gervill.jar
CLASSPATH=${CLASSPATH}:%%JAVALIBDIR%%/itext.jar

JAVA_FLAGS="-Xms128m -Xmx128m -cp ${CLASSPATH}"

MOZILLA_FIVE_HOME=%%PREFIX%%/lib/%%GECKO%% java ${JAVA_FLAGS} \
						-cp ${CLASSPATH} \
						${PACKAGE_MAIN} \
						"${ARGS}"
