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] | |
On Fri, 2004-07-30 at 18:04, Tom Tromey wrote:
> >>>>> "Mark" == Mark Wielaard <mark@klomp.org> writes:
>
> Mark> Could you try it out and see if you like it?
>
> This looks good to me. I have a couple minor changes, but just make
> them and check it in...
OK. All done and checked in as:
2004-07-30 Mark Wielaard <mark@klomp.org>
* bin/gen-classpath-compare: Add -gui flag.
Cheers,
Mark
Index: bin/gen-classpath-compare
===================================================================
RCS file: /cvs/gcc/wwwdocs/bin/gen-classpath-compare,v
retrieving revision 1.12
diff -u -r1.12 gen-classpath-compare
--- bin/gen-classpath-compare 16 May 2004 22:10:07 -0000 1.12
+++ bin/gen-classpath-compare 30 Jul 2004 16:35:21 -0000
@@ -9,6 +9,15 @@
cvsrm=:
fi
+if test "$1" = "-gui"; then
+ gui=yes
+ GUI="GUI Classes only"
+ shift
+else
+ gui=no
+ GUI="No GUI Classes"
+fi
+
LIBGCJ=$1
CLASSPATH=$2
shift
@@ -23,7 +32,7 @@
EXPECTEDDIR="$OUTPUT/expected"
if test -z "$LIBGCJ" || test -z "$CLASSPATH" || test -z "$OUTPUT"; then
- echo "usage: gen-classpath-compare [-cvs] libgcj-path classpath-path [output-path]" 1>&2
+ echo "usage: gen-classpath-compare [-cvs] [-gui] libgcj-path classpath-path [output-path]" 1>&2
exit 1
fi
@@ -35,15 +44,11 @@
rm -f $OUTPUT/compare/*.diff
-cat > $outfile << 'END'
-<html>
-<head>
-<title>libgcj -vs- Classpath</title>
-<link rel="stylesheet" type="text/css" href="http://gcc.gnu.org/gcc.css"></link>
-</head>
-<body>
-<h1>libgcj -vs- Classpath</h1>
+echo "<html> <head> <title>libgcj -vs- Classpath ($GUI)</title>" > $outfile
+echo '<link rel="stylesheet" type="text/css" href="http://gcc.gnu.org/gcc.css"></link>' >> $outfile
+echo "</head> <body> <h1>libgcj -vs- Classpath ($GUI)</h1>" >> $outfile
+cat >> $outfile << 'END'
<p>This page compares the "current" cvs libgcj against the "current"
cvs Classpath. It was generated using the <code>gen-classpath-compare</code>
script (available in gcc cvs repository in <code>wwwdocs/bin/</code>) on
@@ -51,6 +56,12 @@
date "+%Y-%m-%d." >> $outfile
+if test "$gui" = "yes"; then
+ echo "<p>Only lists gui files (AWT, Swing, and gtk-peer)</p>" >> $outfile
+else
+ echo "<p>Only lists non-gui files (NO AWT, Swing, or gtk-peer)</p>" >> $outfile
+fi
+
cat >> $outfile << 'END'
This table intentionally omits certain classes which are not of
interest. If the third column shows a "Diff" link, then that means
@@ -83,13 +94,24 @@
"
# Note: for now, we omit much of gnu.*, as it differs too much.
+WantedFiles="java|javax|gnu/java|gnu/javax|gnu/regexp|javax"
+DoNotCompare="gnu/java/io/decode|gnu/java/io/encode|gnu/javax/swing/plaf/gtk"
+GuiFiles="java/awt|javax/swing|gnu/java/awt|gnu/javax/swing|jni/gtk-peer"
+if test "$gui" = "no"; then
+ WantedRegexp="^($WantedFiles)/"
+ ExcludedRegExp="^($DoNotCompare|$GuiFiles)/"
+else
+ WantedRegexp="^($GuiFiles)/"
+ ExcludedRegExp="^($DoNotCompare)/"
+fi
+
(cd $LIBGCJ; find . -name '*.java' -print;
cd $CLASSPATH; find . -name '*.java' -print;
cd $CLASSPATH/external/jaxp/source; find . -name '*.java' -print
cd $CLASSPATH/native; find jni/gtk-peer -name '*.c' -print) |
sort -u | sed -e 's,^\./,,' |
-grep -E '^(java|javax|gnu/java|gnu/javax|gnu/regexp|javax|jni/gtk-peer)/' |
-grep -E -v '^(gnu/java/io/decode|gnu/java/io/encode|gnu/javax/swing/plaf/gtk)' |
+grep -E "$WantedRegexp" |
+grep -E -v "$ExcludedRegExp" |
(cd $LIBGCJ
while read f; do
class=`echo $f | sed -e 's,/,.,g' -e 's,\.java$,,'`
Attachment:
signature.asc
Description: This is a digitally signed message part
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |