svn commit: r53917 - head/share/tools

Glen Barber <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
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: [email protected]\nTo: ${WEBMAILTO}\nSubject: ${subject}\n\n${body}\n\n" \
+			| /usr/sbin/sendmail -oi -f [email protected] ${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: [email protected]\nTo: ${WEBMAILTO}\nSubject: ${subject}\n\n${body}\n\n" \
+			| /usr/sbin/sendmail -oi -f [email protected] ${WEBMAILTO};
 	 exit 3) || exit 3;
 
 if [ "X${PUBDIR}" != "X" ]; then
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-doc-all
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.