X-Spam-Check-By: sourceware.org Message-ID: <10845a340604280111o48fff212n78286b8f78c539c9@mail.gmail.com> Date: Fri, 28 Apr 2006 09:11:37 +0100 From: "Richard Quadling" Reply-To: RQuadling AT googlemail DOT com To: cygwin AT cygwin DOT com Subject: Re: How do I detect a failure in Make? In-Reply-To: <444F8631.7000206@tibco.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline References: <10845a340604260701g2026a64fx5dac7fb5351b224a AT mail DOT gmail DOT com> <444F8631 DOT 7000206 AT tibco DOT com> Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id k3S8BjD8005993 On 26/04/06, mwoehlke wrote:> Richard Quadling wrote:> > I have the following bash script ...> >> > #!/bin/sh> > cvs up 2> $HOME/cvs1.log > $HOME/cvs2.log> > cd phpdoc> > autoconf -v -d --warnings=all &> $HOME/autoconf.log> > ./configure --with-source=./../php-src --with-pear-source=./../pear> > --with-chm=yes --with-treesaving > $HOME/configure.log> > make test > $HOME/make_test.log> > make test_xml > $HOME/make_test_xml.log> > make chm_xsl > $HOME/make_chm_xsl.log> >> > Is there a way of stopping the makes if there was a problem. > Matthew said using [ $? -eq 0 ] || exit $? after each make line would work. It doesn't. The issue is that the make function is crashing (the coredump ??!!!??). I'm not responsible for the construction of the make file, I just wantto stop my script from running if there is a problem. -------Fight back spam! Download the Blue Frog.http://www.bluesecurity.com/register/s?user=UlF1YWRsaW5n