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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Alexandre Oliva writes:
 > 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.
 > 
 > Without this patch, I couldn't build libjava on the development tree
 > that will eventually turn into Fedora 8, but it built on Fedora 7 just
 > fine.
 > 
 > Unless someone tells me not to, I'm going to check this into GCC trunk
 > tomorrow or so.  Bootstrapped on x86_64-linux-gnu.
 > 
 > Index: libjava/classpath/ChangeLog
 > from  Alexandre Oliva  <aoliva@xxxxxxxxxx>
 > 
 > 	* scripts/check_jni_methods.sh: Don't depend on diff -b ignoring
 > 	a single trailing whitespace.
 > 

OK, thanks.

Andrew.


[Index of Archives]     [Linux Kernel]     [Linux Cryptography]     [Fedora]     [Fedora Directory]     [Red Hat Development]

  Powered by Linux