Update of /cvsroot/pure-data/scripts/auto-build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29220
Modified Files: mail-mingw-log-hack.sh run-automated-builder Log Message: only send emails if RECIPIENT is defined
Index: run-automated-builder =================================================================== RCS file: /cvsroot/pure-data/scripts/auto-build/run-automated-builder,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** run-automated-builder 27 Nov 2007 03:03:40 -0000 1.20 --- run-automated-builder 27 Nov 2007 20:49:22 -0000 1.21 *************** *** 37,42 **** --- 37,44 ---- completion_test=`tail -1 ${LOGFILE}` if [ "x${completion_test}" != "xSUCCESS" ]; then + if [ "x${RECIPIENT}" != "x" ]; then SUBJECT="autobuild: $distro $HOSTNAME $DATE $TIME" tail -20 ${LOGFILE} | mail -s "${SUBJECT}" ${RECIPIENT} + fi fi }
Index: mail-mingw-log-hack.sh =================================================================== RCS file: /cvsroot/pure-data/scripts/auto-build/mail-mingw-log-hack.sh,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** mail-mingw-log-hack.sh 22 Oct 2007 22:41:47 -0000 1.3 --- mail-mingw-log-hack.sh 27 Nov 2007 20:49:22 -0000 1.4 *************** *** 12,17 **** --- 12,19 ---- completion_test=`tail -1 ${logfile}` if [ "x${completion_test}" != "xSUCCESS" ]; then + if [ "x${RECIPIENT}" != "x" ]; then SUBJECT="autobuild: $distro $HOSTNAME $DATE $TIME" tail -20 ${logfile} | mail -s "autobuild: $logfile" ${RECIPIENT} + fi fi done