GCC's classpath/scripts/check_jni_methods.sh vs diff -b

Mark Wielaard mark@klomp.org
Tue Oct 16 15:27:00 GMT 2007


Hi Alexandre,

On Mon, 2007-10-01 at 15:37 -0300, Alexandre Oliva wrote:
> diff -b doesn't completely ignore all whitespace, but rather only
> differences as to the amount of whitespace; so whether whitespace is
> present or not is regarded as a difference.
> 
> However, check_jni_methods.sh expects it to ignore a single trailing
> blank vs no trailing whitespace whatsoever.  diff -B does, but I don't
> think that's portable enough for us to use it.
> 
> So I've changed the regular expressions such that they'd be more
> inclusive, instead of demanding and discarding whitespace before open
> parentheses, and removed the -b then rendered unnecessary.

from  Alexandre Oliva  <aoliva@redhat.com>

        * scripts/check_jni_methods.sh: Don't depend on diff -b ignoring
        a single trailing whitespace.

Thanks, now also committed to classpath upstream.

Cheers,

Mark



More information about the Java-patches mailing list