Author: biurrun Date: Wed Apr 7 19:52:50 2010 New Revision: 2258 Log: autobuild: Create mail tempfile in the checkout directory. This ensures that it's possible to write the tempfile and ensures it gets removed when exiting. Modified: trunk/tools/pisa_autobuild.sh Modified: trunk/tools/pisa_autobuild.sh ============================================================================== --- trunk/tools/pisa_autobuild.sh Wed Apr 7 19:49:12 2010 (r2257) +++ trunk/tools/pisa_autobuild.sh Wed Apr 7 19:52:50 2010 (r2258) @@ -41,17 +41,16 @@ mail_notify() { COMMAND="$1" - cat > msg.txt <<EOF + cat > $CHECKOUT_DIR/msg.txt <<EOF revision: $PISA_HEAD_REVISION configuration: $CONFIGURATION command: $COMMAND compiler output: EOF - cat log.txt >> msg.txt + cat log.txt >> $CHECKOUT_DIR/msg.txt SUBJECT="[autobuild] revision $PISA_HEAD_REVISION" - mailx -s "$SUBJECT" $PISA_NOTIFICATION_EMAIL < msg.txt - rm -f msg.txt + mailx -s "$SUBJECT" $PISA_NOTIFICATION_EMAIL < $CHECKOUT_DIR/msg.txt } cleanup()