Patch: FYI: no .svn files in jar

Tom Tromey tromey@redhat.com
Tue Jan 30 22:52:00 GMT 2007


I'm checking this in.

David Daney pointed out that we had .svn stuff in the built
libgcj.jar.  This patch fixes the bug.  Tested with fastjar and our
jar script.

Tom

2007-01-30  Tom Tromey  <tromey@redhat.com>

	* Makefile.in: Rebuilt.
	* Makefile.am (libgcj-$(gcc_version).jar): Rewrote.

Index: Makefile.am
===================================================================
--- Makefile.am	(revision 121314)
+++ Makefile.am	(working copy)
@@ -332,8 +332,10 @@
 libgcj-$(gcc_version).jar: classpath/lib/compile-classes
 ## Note that this now omits the property files.
 ## It doesn't matter since we don't use the jar at runtime.
-	here=`pwd`; cd $(srcdir)/classpath/lib; $(JAR) -cfM \
-	    $$here/libgcj-$(gcc_version).jar gnu java javax org sun
+	here=`pwd`; cd $(srcdir)/classpath/lib; \
+	find gnu java javax org sun -name '*.class' -print | \
+	fgrep -v .svn | \
+	$(JAR) -cfM@ $$here/libgcj-$(gcc_version).jar
 
 libgcj-tools-$(gcc_version).jar: classpath/tools/tools.zip
 	cp $< $@



More information about the Java-patches mailing list