#!/bin/sh

#   determine Java CLASSPATH
classpath=""
for jar in @l_prefix@/lib/sqlshell/*.jar; do
    if [ ".$classpath" = . ]; then
        classpath="$jar"
    else
        classpath="$classpath:$jar"
    fi
done

#   run program
exec @l_prefix@/bin/java \
    -cp "$classpath" \
    org.clapper.sqlshell.tool.Tool \
    ${1+"$@"}

