From owner-svn-doc-all@freebsd.org Wed Feb 19 16:42:27 2020 Return-Path: Delivered-To: svn-doc-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8659523FAFE; Wed, 19 Feb 2020 16:42:27 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48N3RR2Llgz3LxC; Wed, 19 Feb 2020 16:42:27 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4BB8BBCC2; Wed, 19 Feb 2020 16:42:27 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 01JGgRGX070046; Wed, 19 Feb 2020 16:42:27 GMT (envelope-from gjb@FreeBSD.org) Received: (from gjb@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 01JGgRwW070045; Wed, 19 Feb 2020 16:42:27 GMT (envelope-from gjb@FreeBSD.org) Message-Id: <202002191642.01JGgRwW070045@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: gjb set sender to gjb@FreeBSD.org using -f From: Glen Barber Date: Wed, 19 Feb 2020 16:42:27 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r53917 - head/share/tools X-SVN-Group: doc-head X-SVN-Commit-Author: gjb X-SVN-Commit-Paths: head/share/tools X-SVN-Commit-Revision: 53917 X-SVN-Commit-Repository: doc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "SVN commit messages for the entire doc trees \(except for " user" , " projects" , and " translations" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Feb 2020 16:42:27 -0000 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