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

Joseph S. Myers jsm28@cam.ac.uk
Tue Apr 29 20:52:00 GMT 2003


On Tue, 29 Apr 2003, Phil Edwards wrote:

> If we can't use ! inversion in 'if', then the patch under discussion looks
> something like
> 
>     echo abfoo >t1
>     echo cdfoo >t2
>     if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
>       if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
>         make_compare_target=slowcompare
>       else
>         make_compare_target=gnucompare
>       fi
>     else
>       make_compare_target=slowcompare
>     fi
>     rm t1 t2
>     AC_SUBST(make_compare_target)
> 
> Right?

Yes.

-- 
Joseph S. Myers
jsm28@cam.ac.uk



More information about the Gcc-patches mailing list