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]
Other format: [Raw text]

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


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@redhat.com>
 > 
 > 	* scripts/check_jni_methods.sh: Don't depend on diff -b ignoring
 > 	a single trailing whitespace.
 > 

OK, thanks.

Andrew.


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