httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Kraemer <Martin.Krae...@mch.sni.de>
Subject [IMPROV] funny effect in apachen/Makefile
Date Thu, 04 Sep 1997 08:45:37 GMT
On one of teh machines here, it appears as if the shell which is invoked
in apachen/Makefile's line...
src/httpd:
	(cd src; \
	  test ! -f Configuration && cp Configuration.tmpl Configuration; \
	  ./Configure -file Configuration; $(MAKE) all support)
has an implicit "-e" switch set. I've never read about such a behavior,
or why this would be caused, but tracing by setting "set -x" in the (..)
reveals that the "test" in "test ... && cp ..." is the last executed
statement, then the (...) returns with an exitcode of nonzero.

I don't know if this happens anywhere else, too, but the "defensive"
improvement to avoid such a trap could be the addition of a "||true".

See patch.

    Martin
-- 
| S I E M E N S |  <Martin.Kraemer@mch.sni.de>  |      Siemens Nixdorf
| ------------- |   Voice: +49-89-636-46021     |  Informationssysteme AG
| N I X D O R F |   FAX:   +49-89-636-44994     |   81730 Munich, Germany
~~~~~~~~~~~~~~~~My opinions only, of course; pgp key available on request

Mime
View raw message