Added usage, MorphOS port
[AROS.git] / scripts / nightly / mail
blob24589ea4f153dc578b82f24e0f4300b23cfa0a57
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 # $* = extra options (attachments)
25 mail_send()
27     mutt -s "$MAIL_SUBJECT" -c $CFG_MAIL_CC $* -- $CFG_MAIL_TO <$MAIL_FILE
30 mail_stop()
32     rm -f $MAIL_FILE