#! /bin/sh

# Squirrel home.
SQUIRREL_SQL_HOME=%%JAVASHAREDIR%%/squirrel-sql

# First entry in classpath is the Squirrel application.
TMP_CP=$SQUIRREL_SQL_HOME/squirrel-sql.jar

# Then add all library jars to the classpath.
for a in $SQUIRREL_SQL_HOME/lib/*; do
	TMP_CP="$TMP_CP":"$a";
done

# Now add the system classpath to the classpath. 
TMP_CP=$TMP_CP:$CLASSPATH

JAVA_VERSION=%%JAVA_VERSION%% java -Xmx256m -classpath ${TMP_CP} -splash:${SQUIRREL_SQL_HOME}/icons/splash.jpg net.sourceforge.squirrel_sql.client.Main --log-config-file ${SQUIRREL_SQL_HOME}/log4j.properties --squirrel-home ${SQUIRREL_SQL_HOME} "$@"
