[pisa-src] r2258 - trunk/tools/pisa_autobuild.sh

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Wed, 07 Apr 2010 19:52:50 +0200

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()

Other related posts:

  • » [pisa-src] r2258 - trunk/tools/pisa_autobuild.sh - Diego Biurrun