2010-02-18 03:35:53 +00:00
|
|
|
#! /bin/sh
|
2005-08-13 23:18:03 +00:00
|
|
|
|
2019-07-23 13:06:09 +00:00
|
|
|
thisdir=$(dirname $0)
|
|
|
|
basedir=$(cd $thisdir/.. || exit; pwd)
|
2005-08-13 23:18:03 +00:00
|
|
|
|
2019-07-23 13:06:09 +00:00
|
|
|
ulimit_max=$(ulimit -H -n)
|
2009-09-19 20:21:48 +00:00
|
|
|
if [ $ulimit_max != "unlimited" ]; then
|
|
|
|
ulimit -n $ulimit_max
|
|
|
|
fi
|
2005-08-13 23:18:03 +00:00
|
|
|
|
|
|
|
# set the classpath
|
2019-07-23 13:06:09 +00:00
|
|
|
for i in "$basedir"/lib/*.jar "$basedir"/lib/*.zip "$basedir"/build/libs/*.jar; do
|
|
|
|
if ! [ -f $i ]; then continue; fi
|
|
|
|
if [ -z "$CLASSPATH" ]; then
|
|
|
|
CLASSPATH=$i
|
|
|
|
else
|
|
|
|
CLASSPATH="$CLASSPATH":"$i"
|
|
|
|
fi
|
2005-08-13 23:18:03 +00:00
|
|
|
done
|
|
|
|
export CLASSPATH
|
|
|
|
|
|
|
|
exec java com.verisignlabs.dnssec.cl.KeyGen "$@"
|