Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Feb 2020 16:42:27 +0000 (UTC)
From:      Glen Barber <gjb@FreeBSD.org>
To:        doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org
Subject:   svn commit: r53917 - head/share/tools
Message-ID:  <202002191642.01JGgRwW070045@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@freebsd.org\nTo: ${WEBMAILTO}\nSubject: ${subject}\n\n${body}\n\n" \
+			| /usr/sbin/sendmail -oi -f www-data@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@freebsd.org\nTo: ${WEBMAILTO}\nSubject: ${subject}\n\n${body}\n\n" \
+			| /usr/sbin/sendmail -oi -f www-data@freebsd.org ${WEBMAILTO};
 	 exit 3) || exit 3;
 
 if [ "X${PUBDIR}" != "X" ]; then



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202002191642.01JGgRwW070045>