This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: FYI: fixlet for gen-classpath-compare
- From: Tom Tromey <tromey at redhat dot com>
- To: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Cc: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 23 Sep 2004 16:26:58 -0600
- Subject: Patch: FYI: fixlet for gen-classpath-compare
- Reply-to: tromey at redhat dot com
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"