#! /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
for i in $basedir/lib/*.jar $basedir/lib/*.zip $basedir/build/lib/*.jar; do
  CLASSPATH="$CLASSPATH":"$i"
done
export CLASSPATH

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