delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/04/28/17:51:29

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Doyle Rhynard <drhynard AT yahoo DOT com>
Subject: Re: How do I detect a failure in Make?
Date: Fri, 28 Apr 2006 14:51:05 -0700
Lines: 33
Message-ID: <44528E49.9020101@yahoo.com>
References: <10845a340604260701g2026a64fx5dac7fb5351b224a AT mail DOT gmail DOT com> <444F8631 DOT 7000206 AT tibco DOT com> <10845a340604280111o48fff212n78286b8f78c539c9 AT mail DOT gmail DOT com>
Mime-Version: 1.0
User-Agent: Thunderbird 1.5.0.2 (Windows/20060308)
In-Reply-To: <10845a340604280111o48fff212n78286b8f78c539c9@mail.gmail.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Richard Quadling wrote:
> On 26/04/06, mwoehlke <mwoehlke-nospam AT tibco DOT com> 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 core
> dump ??!!!??).
> 
> I'm not responsible for the construction of the make file, I just want
> to 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

Use "remake" the make debugger <http://bashdb.sourceforge.net/remake/>
It will allow you to step through the makefile and stop when an error is 
found.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019