This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

Re: gcc_update bug


On May 14, 2001, Loren James Rittle <rittle@latour.rsch.comm.mot.com> wrote:

>> +    echo '	@for f in $?; do test ! -f $$f && exit 0; done; \' >> Makefile.$$

> For some reason, the above code (which is written into Makefile.$$)
> fails repeaedly with this wonderful error message:

> *** Error code 1

Oops, I forgot about this nit.

I'd generally prefer to rewrite this command as:

        for f in $?; do test -f $$f || exit 0; done

so that all compound commands succeed.

If nobody opposes, I'll make this change.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


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