work around the ulimit behavior on mac os X

git-svn-id: https://svn.verisignlabs.com/jdnssec/tools/trunk@177 4cbd57fe-54e5-0310-bd9a-f30fe5ea5e6e
This commit is contained in:
David Blacka 2009-09-19 20:21:48 +00:00
parent ca9bee9d49
commit f09d75453c
5 changed files with 21 additions and 6 deletions

View File

@ -3,7 +3,10 @@
thisdir=`dirname $0` thisdir=`dirname $0`
basedir=`cd $thisdir/..; pwd` basedir=`cd $thisdir/..; pwd`
ulimit -n `ulimit -H -n` ulimit_max=`ulimit -H -n`
if [ $ulimit_max != "unlimited" ]; then
ulimit -n $ulimit_max
fi
# set the classpath # set the classpath
for i in $basedir/lib/*.jar $basedir/lib/*.zip $basedir/build/lib/*.jar; do for i in $basedir/lib/*.jar $basedir/lib/*.zip $basedir/build/lib/*.jar; do

View File

@ -1,9 +1,12 @@
#! /bin/sh f#! /bin/sh
thisdir=`dirname $0` thisdir=`dirname $0`
basedir=`cd $thisdir/..; pwd` basedir=`cd $thisdir/..; pwd`
ulimit -n `ulimit -H -n` ulimit_max=`ulimit -H -n`
if [ $ulimit_max != "unlimited" ]; then
ulimit -n $ulimit_max
fi
# set the classpath # set the classpath
for i in $basedir/lib/*.jar $basedir/lib/*.zip $basedir/build/lib/*.jar; do for i in $basedir/lib/*.jar $basedir/lib/*.zip $basedir/build/lib/*.jar; do

View File

@ -3,7 +3,10 @@
thisdir=`dirname $0` thisdir=`dirname $0`
basedir=`cd $thisdir/..; pwd` basedir=`cd $thisdir/..; pwd`
ulimit -n `ulimit -H -n` ulimit_max=`ulimit -H -n`
if [ $ulimit_max != "unlimited" ]; then
ulimit -n $ulimit_max
fi
# set the classpath # set the classpath
for i in $basedir/lib/*.jar $basedir/lib/*.zip $basedir/build/lib/*.jar; do for i in $basedir/lib/*.jar $basedir/lib/*.zip $basedir/build/lib/*.jar; do

View File

@ -3,7 +3,10 @@
thisdir=`dirname $0` thisdir=`dirname $0`
basedir=`cd $thisdir/..; pwd` basedir=`cd $thisdir/..; pwd`
ulimit -n `ulimit -H -n` ulimit_max=`ulimit -H -n`
if [ $ulimit_max != "unlimited" ]; then
ulimit -n $ulimit_max
fi
# set the classpath # set the classpath
for i in $basedir/lib/*.jar $basedir/lib/*.zip $basedir/build/lib/*.jar; do for i in $basedir/lib/*.jar $basedir/lib/*.zip $basedir/build/lib/*.jar; do

View File

@ -3,7 +3,10 @@
thisdir=`dirname $0` thisdir=`dirname $0`
basedir=`cd $thisdir/..; pwd` basedir=`cd $thisdir/..; pwd`
ulimit -n `ulimit -H -n` ulimit_max=`ulimit -H -n`
if [ $ulimit_max != "unlimited" ]; then
ulimit -n $ulimit_max
fi
# set the classpath # set the classpath
for i in $basedir/lib/*.jar $basedir/lib/*.zip $basedir/build/lib/*.jar; do for i in $basedir/lib/*.jar $basedir/lib/*.zip $basedir/build/lib/*.jar; do