This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

How do I detect a failure in Make?


Hi.

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.

There are more things after these makes but I don't want them to run
unless the makes worked.

I'm used to MS-DOS errorlevels. I assume there is a way of accessing
the errorlevel from a program (assuming it generates one) or any other
way.

The make is failing with ...

make: *** [test_xml] Segmentation fault (core dumped)

I always thought a core dump was a bad thing, but it is what happens.

Any ideas?

Regards,

Richard Quadling.
--
-----
Fight back spam! Download the Blue Frog.
http://www.bluesecurity.com/register/s?user=UlF1YWRsaW5n

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]