aboutsummaryrefslogtreecommitdiff
path: root/scripts/auto-build/mail-mingw-log-hack.sh
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2007-10-22 21:40:19 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2007-10-22 21:40:19 +0000
commit22f5b00a38e2c3529d79f8d8b6c12cae4428ab04 (patch)
tree2187e490559681f3e668f8c67b868d0829145560 /scripts/auto-build/mail-mingw-log-hack.sh
parentfc02aadade2de1cabd75246fcea342b8ba1354f3 (diff)
first stab at making a script to mail the MinGW build logs from the auto-build web server
svn path=/trunk/; revision=8860
Diffstat (limited to 'scripts/auto-build/mail-mingw-log-hack.sh')
-rwxr-xr-xscripts/auto-build/mail-mingw-log-hack.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/scripts/auto-build/mail-mingw-log-hack.sh b/scripts/auto-build/mail-mingw-log-hack.sh
new file mode 100755
index 00000000..32d63f16
--- /dev/null
+++ b/scripts/auto-build/mail-mingw-log-hack.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+
+# the source dir where this script is
+SCRIPT_DIR=`echo $0 | sed 's|\(.*\)/.*$|\1|'`
+. $SCRIPT_DIR/auto-build-common
+
+# the name of this script
+SCRIPT=`echo $0| sed 's|.*/\(.*\)|\1|g'`
+
+for logfile in `ls -1 /home/pd/logs/${DATE}_*_mingw*.txt`; do
+ completion_test=`tail -1 ${logfile}`
+ if [ "x${completion_test}" != "xSUCCESS" ]; then
+ SUBJECT="autobuild: $distro $HOSTNAME $DATE $TIME"
+# tail -20 ${logfile} | mail -s "autobuild: $logfile" ${RECIPIENT}
+ tail -20 ${logfile} | mail -s "autobuild: $logfile" hans@eds.org
+ fi
+done