#! /bin/sh

thisdir=`dirname $0`
basedir=`cd $thisdir/..; pwd`

ulimit_max=`ulimit -H -n`
if [ $ulimit_max != "unlimited" ]; then
    ulimit -n $ulimit_max
fi

# set the classpath
CLASSPATH=$CLASSPATH:$basedir/build/classes

for i in $basedir/lib/*.jar $basedir/lib/*.zip; do
  CLASSPATH="$CLASSPATH":"$i"
done
export CLASSPATH

exec java com.verisignlabs.dnssec.cl.VerifyZone "$@"