Fix for missed interrupts, try 2. Clear any outstanding interrupt before
[tangerine.git] / scripts / nightly / mail
blob78f857e39031e32b0e4ed13cee7bf547dc6f2881
1 MAIL_FILE=/tmp/_aros_build_mail_body
3 MAIL_SUBJECT_PREFIX="[BUILD]"
4 MAIL_SUBJECT_BASE="Nightly build on $CFG_NAME"
6 MAIL_SUBJECT=""
8 # $1 = description of result of build
9 mail_start()
11     MAIL_SUBJECT="$MAIL_SUBJECT_PREFIX $MAIL_SUBJECT_BASE $1"
12     
13     touch $MAIL_FILE
14     mail_write "$MAIL_SUBJECT_BASE $1."
15     mail_write "Build started at $START_TIME UTC, finished at $STOP_TIME UTC."
16     mail_write "Upload started at $UPLOAD_START_TIME UTC, finished at $UPLOAD_STOP_TIME UTC."
19 mail_write()
21     echo >>$MAIL_FILE $*
24 # $1 = extra options (attachements)
25 mail_send()
27     mail -s $MAIL_SUBJECT -c $CFG_MAIL_CC $1 $CFG_MAIL_TO <$MAIL_FILE
30 mail_stop()
32     rm -f $MAIL_FILE