trying a version that can test tip as default for tinderbox and 341

as default for nightly QA
This commit is contained in:
sonja.mirtitsch%sun.com 2002-04-25 01:04:10 +00:00
parent 04e0a048ea
commit adb8e67a58

View File

@ -570,7 +570,7 @@ init_dirs()
if [ -z "${BCDIST}" ] ; then
#BCDIST=/share/builds/mccrel3/nss/${BC_MASTER}/mozilla/dist
BCDIST=${NSS_VER_DIR}/../${BC_MASTER}/mozilla/dist
if [ ! -d $BCDIST ] ; then
if [ ! -d $BCDIST -a `basename $0` != jssqa ] ; then
ask "Backward compatibility directory $BCDIST does not exist, continue" "y" "n" || Exit
fi
fi
@ -602,7 +602,7 @@ init_dirs()
TESTSCRIPTDIR=${MOZILLA_ROOT}/security/nss/tests
fi
if [ ! -d $TESTSCRIPTDIR ] ; then
if [ ! -d $TESTSCRIPTDIR -a `basename $0` != jssqa ] ; then
if [ "$O_WIN" = "ON" -a "$WIN_WAIT_FOREVER" = "ON" ]
then
WaitForever $TESTSCRIPTDIR/all.sh 1
@ -871,23 +871,21 @@ eval_opts()
-*)
glob_usage "Error: Can't handle option $1"
;;
?*)
tip|3.|3..)
NSSVER=$1
if [ -z "$NSSVER" ]
then
NSSVER="tip"
Debug "NSS Version: Parameters missing - defaulting to tip!"
else
BUILDDATE=$2
if [ -z "$BUILDDATE" ]
then
BUILDDATE=`date +%m%d`
Debug "Builddate: Parameters missing - defaulting to today!"
else
shift
fi
if [ -z "$NSSVER" ] ; then
glob_usage "Error: illegal parameter"
fi
;;
[01][0-9][0123][0-9])
BUILDDATE=$1
if [ -z "$BUILDDATE" ] ; then
glob_usage "Error: illegal parameter"
fi
;;
?*)
glob_usage "Error: Can't handle parameter $1"
;;
esac
shift
done
@ -895,17 +893,18 @@ eval_opts()
if [ -z "$PORT" -a "$O_TBX" = "ON" ] ; then
PORT=8444
export PORT
if [ -z "$NSSVER" ] ; then
NSSVER="tip"
Debug "NSS Version: Parameters missing - defaulting to tip!"
fi
elif [ -z "$NSSVER" ] ; then
NSSVER="341"
Debug "NSS Version: Parameters missing - defaulting to 341!"
fi
if [ -z "$BUILDDATE" ]
then
if [ -z "$BUILDDATE" ] ; then
BUILDDATE=`date +%m%d`
Debug "Builddate: Parameters missing - defaulting to today!"
fi
if [ -z "$NSSVER" ]
then
NSSVER="tip"
Debug "NSS Version: Parameters missing - defaulting to tip!"
fi
Debug "Builddate $BUILDDATE NssVersion $NSSVER"
export BUILDDATE NSSVER