svn commit: r53917 - head/share/tools
Glen Barber
gjb at FreeBSD.org
Wed Feb 19 16:42:27 UTC 2020
Author: gjb
Date: Wed Feb 19 16:42:26 2020
New Revision: 53917
URL: https://svnweb.freebsd.org/changeset/doc/53917
Log:
Fix doc build failure email generation to the freebsd-doc mailing list.
Approved by: doceng (implicit)
Sponsored by: Rubicon Communications, LLC (netgate.com)
Modified:
head/share/tools/webupdate
Modified: head/share/tools/webupdate
==============================================================================
--- head/share/tools/webupdate Wed Feb 19 15:25:31 2020 (r53916)
+++ head/share/tools/webupdate Wed Feb 19 16:42:26 2020 (r53917)
@@ -159,15 +159,20 @@ make -C en_US.ISO8859-1/articles/pam/ SRCS="$(pwd)" -V
time make ${BUILDARGS} p-all >> $LOGFILE 2>&1 ||
(cat $LATESTREVISION >> $LOGFILE
- tail -50 $LOGFILE | mail -s "FreeBSD web build failed on `hostname`" $WEBMAILTO;
+ body="$(tail -50 $LOGFILE)"
+ subject="FreeBSD web build failed on $(hostname)"
+ printf "From: www-data at freebsd.org\nTo: ${WEBMAILTO}\nSubject: ${subject}\n\n${body}\n\n" \
+ | /usr/sbin/sendmail -oi -f www-data at freebsd.org ${WEBMAILTO};
exit 3) || exit 3;
cd $BUILDDIR/head/en_US.ISO8859-1/htdocs || exit 1;
( time make ${INSTARGS} -j8 all && time make ${INSTARGS} install ) >> $LOGFILE 2>&1 ||
(cat $LATESTREVISION >> $LOGFILE
- tail -50 $LOGFILE |
- mail -s "FreeBSD web build failed on `hostname`" $WEBMAILTO;
+ body="$(tail -50 $LOGFILE)"
+ subject="FreeBSD web build failed on $(hostname)"
+ printf "From: www-data at freebsd.org\nTo: ${WEBMAILTO}\nSubject: ${subject}\n\n${body}\n\n" \
+ | /usr/sbin/sendmail -oi -f www-data at freebsd.org ${WEBMAILTO};
exit 3) || exit 3;
if [ "X${PUBDIR}" != "X" ]; then
More information about the svn-doc-all
mailing list