Patch: FYI: fixlet for gen-classpath-compare

Tom Tromey tromey@redhat.com
Fri Sep 24 12:33:00 GMT 2004


I'm checking this in.

This fixes the "expected diff" functionality in gen-classpath-compare
so that it doesn't compare diff header lines, which have (varying)
date information in them.

Tom

Index: gen-classpath-compare
===================================================================
RCS file: /cvs/gcc/wwwdocs/bin/gen-classpath-compare,v
retrieving revision 1.15
diff -u -r1.15 gen-classpath-compare
--- gen-classpath-compare 13 Sep 2004 13:06:46 -0000 1.15
+++ gen-classpath-compare 23 Sep 2004 22:28:14 -0000
@@ -144,7 +144,8 @@
 	 if test -s $tmp; then
 	    cp $tmp "$OUTPUT/compare/$class.diff"
             if test -f $EXPECTEDDIR/$class.diff ; then
-              diff -q $OUTPUT/compare/$class.diff $EXPECTEDDIR/$class.diff > /dev/null
+	      # Ignore header lines.
+              diff -q -I'^[+-][+-][+-] ' $OUTPUT/compare/$class.diff $EXPECTEDDIR/$class.diff > /dev/null
 	      if test "$?" = "1" ; then
 	        Merge="<td class=\"merged-unexpected-diff\"><a href=\"compare/$class.diff\">Expected diff changed</a></td>"
 	        Style="merged-unexpected-diff"



More information about the Java-patches mailing list