Revision d587c226

View differences:

utils/autobuild.sh
35 35
BRANCH_REVISION=-1
36 36
BRANCH_REVISION_FILE=$AUTOBUILD_DIR/last-revision
37 37
BRANCH_REVISION=$(git rev-list --max-count=1 HEAD)
38
SUBJECT="[autobuild Horizon 4] "
38 39

  
39 40
if [ -e $BRANCH_REVISION_FILE ] ; then
40 41
    LAST_REVISION=$(cat $BRANCH_REVISION_FILE)
......
66 67
compiler output:
67 68
EOF
68 69
    cat log.txt >> $CHECKOUT_DIR/msg.txt
69
    SUBJECT="[autobuild] revision $BRANCH_REVISION"
70
    mailx -s "$SUBJECT" $RECIPIENTS < $CHECKOUT_DIR/msg.txt
70
    subject="$SUBJECT FAILED"
71
    mailx -s "$subject" $RECIPIENTS < $CHECKOUT_DIR/msg.txt
71 72
    cat $CHECKOUT_DIR/msg.txt
72 73
}
73 74

  
......
90 91

  
91 92
# only run the autobuilder for newer revisions than the last one checked
92 93
if [ $BRANCH_REVISION = $LAST_REVISION ] ; then
94
    subject="$SUBJECT SKIPPED: Repository unchanged"
95
    echo " " | mailx -s "$subject" $RECIPIENTS
93 96
    exit 0
94 97
fi
95 98

  
......
109 112
    make clean
110 113
done
111 114

  
115
subject="$SUBJECT SUCCESS: All configurations successfully built"
116
echo " " | mailx -s "$subject" $RECIPIENTS
117

  
112 118
cleanup 0

Also available in: Unified diff