This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java 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]

Patch: FYI: fixlet for gen-classpath-compare


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"


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