On Wed, Oct 7, 2009 at 8:04 AM, William A. Rowe, Jr.
<[email protected]> wrote:
> Jeff Trawick wrote:
>>
>> As far as repairing, I switched to the syntax used elsewhere in the
>> makefile.  But I'll try the other syntax very shortly.
>
> IIRC that syntax was selected to avert the makefile from aborting in case of 
> failure.

Is this a valid test?  (sorry, in the middle of getting the 10 YO off to school)

$ if test -f Makefile.apxs; then ls /not/home; fi
ls: cannot access /not/home: No such file or directory
$ echo $?
2
$ if test -f Makefile.apxs; then ( ls /not/home ); fi
ls: cannot access /not/home: No such file or directory
$ echo $?
2

>
> As it now stands, we check the file existence.  But that doesn't mean this 
> can't
> fail due to permissions, etc.
>

Reply via email to