added concrete implementations of putc(), getc(), getchar() and gets()
[tangerine.git] / scripts / nightly / mail
blob97d0068e123c614a7ce354c5c4f26054b4e83970
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     mutt -s $MAIL_SUBJECT -c $CFG_MAIL_CC $1 $CFG_MAIL_TO <$MAIL_FILE
30 mail_stop()
32     rm -f $MAIL_FILE