added sendmail, fixed sendmailbug

This commit is contained in:
sonja.mirtitsch%sun.com 2001-11-15 19:01:16 +00:00
Родитель ba575895dd
Коммит 42f048a6c4
1 изменённых файлов: 18 добавлений и 0 удалений

Просмотреть файл

@ -17,6 +17,10 @@ if [ -z "$BUILDNUMBER" ]
then then
BUILDNUMBER=1 BUILDNUMBER=1
fi fi
if [ `uname` = "Linux" ] ; then
PATH=".:/u/sonmi/bin:/u/sonmi/bin/linux:/usr/bsd:/usr/ucb/:/bin:/usr/bin:/usr/ccs/bin:/usr/sbin:/usr/bin/X11:/usr/etc:/etc:/usr/demos:/usr/demos/bin:/usr/local/bin:/usr/local/X11/bin:/tools/ns/bin"
export PATH
fi
Echo() Echo()
{ {
@ -189,6 +193,7 @@ eval_opts()
DO_CLEAN=OFF DO_CLEAN=OFF
O_SILENT=OFF O_SILENT=OFF
O_INCREMENTAL=OFF O_INCREMENTAL=OFF
O_MAIL=OFF
BUILDDATE=`date +%m%d` BUILDDATE=`date +%m%d`
NSSVER=tip NSSVER=tip
@ -200,6 +205,16 @@ eval_opts()
-d) -d)
DO_DQA=ON DO_DQA=ON
;; ;;
-m)
O_MAIL=ON
shift
MAILINGLIST=$1
if [ -z "$MAILINGLIST" ]
then
echo "Error: -m requires a mailinglist to follow, for example sonmi@iplanet.com"
exit
fi
;;
-ti) -ti)
DO_TBX=ON DO_TBX=ON
match_tbxdirs 2 match_tbxdirs 2
@ -235,6 +250,9 @@ if [ "$DO_CLEAN" = "ON" ] ; then
fi fi
if [ "$DO_DQA" = "ON" ] ; then if [ "$DO_DQA" = "ON" ] ; then
qa_stage_dqa qa_stage_dqa
if [ "$O_MAIL" = "ON" ] ; then
cat $DQA_STAGE/result.html | /usr/sbin/sendmail $MAILINGLIST
fi
fi fi
if [ "$DO_TBX" = "ON" ] ; then if [ "$DO_TBX" = "ON" ] ; then
qa_stage_tbx qa_stage_tbx