X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: mwoehlke <mwoehlke@tibco.com>
Subject:  Re: How do I detect a failure in Make?
Date:  Fri, 28 Apr 2006 10:00:00 -0500
Lines: 33
Message-ID: <e2tali$711$1@sea.gmane.org>
References:  <10845a340604260701g2026a64fx5dac7fb5351b224a@mail.gmail.com> 	 <444F8631.7000206@tibco.com> <10845a340604280111o48fff212n78286b8f78c539c9@mail.gmail.com>
Mime-Version:  1.0
Content-Type:  text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding:  7bit
User-Agent: Thunderbird 1.5 (X11/20051201)
In-Reply-To: <10845a340604280111o48fff212n78286b8f78c539c9@mail.gmail.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Richard Quadling wrote:
> On 26/04/06, mwoehlke <mwoehlke-nospam@tibco.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 ??!!!??).

http://cygwin.com/acronyms/#IWFM. A process that dumps core results in a 
non-zero exit status (not that 'make' should ever core dump). Did you 
try some of the alternatives? Are you sure you haven't clobbered your 
exit code?

If you can run 'make' at the command line in such a way that it fails, 
does '<make that fails> || echo fail' work?

-- 
Matthew
"Sorry. Wrong species." --ST-TNG


--
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/

