[PATCH] Allow "make compare" to use "make gnucompare" automatically

Andreas Schwab schwab@suse.de
Wed Apr 30 22:12:00 GMT 2003


Alexandre Oliva <aoliva@redhat.com> writes:

> On Apr 30, 2003, Andreas Schwab <schwab@suse.de> wrote:
> 
> >   if cmp --ignore-initial=2 t1 t2 &&
> >      if cmp --ignore-initial=1 t1 t2; then false; else true; fi; then
> 
> Are you sure this is portable?  I've always wondered about it, never
> daring to try it with a wider audience :-)

I can't see anything unportable here, it's just plain Bourne Shell.
You could replace `false' by `(exit 1)' and `true' by `:' if you
prefer builtins, but that's all.

Andreas.



More information about the Gcc-patches mailing list