Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Nov 2003 14:54:32 +0900
From:      Jun Kuriyama <kuriyama@imgsrc.co.jp>
To:        www@FreeBSD.org
Subject:   www/tools/webupdate returns 0
Message-ID:  <7mfzgno7zb.wl@black.imgsrc.co.jp>

next in thread | raw e-mail | index | archive | help

It looks like our webupdate script returns 0 to parent process even if
build has failed.

Is it ok to modify like this?


Index: webupdate
===================================================================
RCS file: /home/ncvs/www/tools/webupdate,v
retrieving revision 1.9
diff -u -r1.9 webupdate
--- webupdate	31 Aug 2001 17:39:07 -0000	1.9
+++ webupdate	17 Nov 2003 05:50:40 -0000
@@ -123,7 +123,7 @@
 time make ${BUILDARGS} all >> $LOGFILE 2>&1 &&
     time make ${INSTARGS} DESTDIR=$DESTDIR install >> $LOGFILE 2>&1 ||
 	(tail -50 $LOGFILE |
-	    mail -s "FreeBSD web build failed on `hostname`" $WEBMAILTO &&
-	    exit 3);
+	 mail -s "FreeBSD web build failed on `hostname`" $WEBMAILTO;
+	 exit 3) || exit 3;
 
 exit 0;


-- 
Jun Kuriyama <kuriyama@imgsrc.co.jp> // IMG SRC, Inc.
             <kuriyama@FreeBSD.org> // FreeBSD Project



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