Fix doc build failure email generation to the freebsd-doc mailing list.
Approved by: doceng (implicit) Sponsored by: Rubicon Communications, LLC (netgate.com)
This commit is contained in:
parent
ff313c2d41
commit
9a3a8348bb
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=53917
1 changed files with 8 additions and 3 deletions
|
@ -159,15 +159,20 @@ make -C en_US.ISO8859-1/articles/pam/ SRCS="$(pwd)" -V LATESTREVISION | \
|
|||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue