Update of /var/cvs/speeltuin/nightly
In directory james.mmbase.org:/home/nightly/bin
Modified Files:
build.sh
Log Message:
fixed some bugs, clearer messages in the 'build fail' mail
See also: http://cvs.mmbase.org/viewcvs/speeltuin/nightly
Index: build.sh
===================================================================
RCS file: /var/cvs/speeltuin/nightly/build.sh,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -b -r1.16 -r1.17
--- build.sh 23 Jul 2008 22:24:57 -0000 1.16
+++ build.sh 24 Jul 2008 05:57:11 -0000 1.17
@@ -98,14 +98,14 @@
if [ -f latest/messages.log ] ; then
if (( `cat latest/messages.log | grep 'FAILED' | wc -l` > 0 )) ; then
echo Build failed, sending mail to ${MAILADDRESS} - | tee -a
${builddir}/messages.log
- echo -e "No build on ${version}\n\nPerhaps the build failed:\n\n" | \
- tail -q -n 20 - latest/messages.log last/errors.log | \
+ echo -e "Build on ${version} failed:\n\n" | \
+ cat latest/messages.log latest/errors.log | grep -B 10 "FAILED"
| \
mutt -s "Build failed ${version}" ${MAILADDRESS}
fi
else
echo Build failed, sending mail to ${MAILADDRESS}
echo -e "No build created on ${version}\n\n" | \
- tail -q -n 20 - last/errors.log | \
+ tail -q -n 20 - latest/errors.log | \
mutt -s "Build failed ${version}" ${MAILADDRESS}
fi
fi
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs