From: Michael Tremer Date: Thu, 21 May 2009 12:55:22 +0000 (+0200) Subject: make-batch: Don't send a mail when build was successful. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a40c94ddac527a1bd18dab9465aa476a73872beb;p=ipfire-3.x.git make-batch: Don't send a mail when build was successful. After this change the builders will only send a mail when an error occured. --- diff --git a/tools/make-batch b/tools/make-batch index 4187eb08f..09b60807b 100644 --- a/tools/make-batch +++ b/tools/make-batch @@ -50,19 +50,17 @@ batch_run() { $0 build &> $BATCHLOG sleep 30 if [ -e "$FAILED" ]; then - SUBJECT="Failed :(" + batch_mail "Build failed :(" else - SUBJECT="Success!" puttarget fi - SUBJECT=$SUBJECT batch_mail } ############################################################################### # A function to send an email to the developers # ############################################################################### batch_mail() { - MAIL_SUBJECT="[build.ipfire.org - ${HOSTNAME}] - ${SUBJECT}" + MAIL_SUBJECT="[${HOSTNAME}] - ${1}" for i in MAIL_SERVER MAIL_TO MAIL_FROM MAIL_USER MAIL_PASS MAIL_SUBJECT; do [ -n "${!i}" ] && export ${i}="${!i}"