[hipl-commit] [trunk] Rev 4166: autobuild: Create mail tempfile in the checkout directory.

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Wed, 7 Apr 2010 20:53:09 +0300

Committer: Diego Biurrun <diego@xxxxxxxxxx>
Date: 07/04/2010 at 20:53:09
Revision: 4166
Revision-id: diego@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

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:
  M  tools/hipl_autobuild.sh

=== modified file 'tools/hipl_autobuild.sh'
--- tools/hipl_autobuild.sh     2010-04-07 17:48:37 +0000
+++ tools/hipl_autobuild.sh     2010-04-07 17:53:00 +0000
@@ -48,7 +48,7 @@
 mail_notify()
 {
     COMMAND="$1"
-    cat > msg.txt <<EOF
+    cat > $CHECKOUT_DIR/msg.txt <<EOF
 branch: $BRANCH_NAME
 revision: $BRANCH_REVISION
 configuration: $CONFIGURATION
@@ -56,10 +56,9 @@
 compiler output:
 
 EOF
-    cat log.txt >> msg.txt
+    cat log.txt >> $CHECKOUT_DIR/msg.txt
     SUBJECT="[autobuild] [$BRANCH_NAME] revision $BRANCH_REVISION"
-    mailx -s "$SUBJECT" $HIPL_NOTIFICATION_EMAIL < msg.txt
-    rm -f msg.txt
+    mailx -s "$SUBJECT" $HIPL_NOTIFICATION_EMAIL < $CHECKOUT_DIR/msg.txt
 }
 
 cleanup()

Other related posts:

  • » [hipl-commit] [trunk] Rev 4166: autobuild: Create mail tempfile in the checkout directory. - Diego Biurrun