re PR libgcj/17715 (.properties files missing from libgcj-4.0.0.jar)
authorTom Tromey <tromey@redhat.com>
Wed, 29 Sep 2004 19:51:17 +0000 (19:51 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Wed, 29 Sep 2004 19:51:17 +0000 (19:51 +0000)
PR libgcj/17715:
* Makefile.in: Rebuilt.
* Makefile.am (libgcj-@gcc_version@.jar): Include properties
files.
(all_property_files): New macro.

From-SVN: r88300

libjava/ChangeLog
libjava/Makefile.am
libjava/Makefile.in

index e1d6f9f15546871cd0d128ca655e41753e8cfb72..f9ec617033689cc3f97ab36f461832fa8254a17b 100644 (file)
@@ -1,5 +1,11 @@
 2004-09-29  Tom Tromey  <tromey@redhat.com>
 
+       PR libgcj/17715:
+       * Makefile.in: Rebuilt.
+       * Makefile.am (libgcj-@gcc_version@.jar): Include properties
+       files.
+       (all_property_files): New macro.
+
        * Makefile.in: Rebuilt.
        * Makefile.am (ordinary_java_source_files): Re-sorted.
        (libgcj.la): Moved to old location near lib-gnu-awt-xlib.la.
index 88554621be2643e2090fad0b8294ab8157a3dce7..1e0e9c078702ff6f1886b2f65d73b50d558a1bbb 100644 (file)
@@ -469,6 +469,9 @@ all_java_source_files = \
 
 all_java_class_files = $(all_java_source_files:.java=.class)
 
+all_property_files = $(property_files) $(jgss_property_files) \
+    java/util/logging/logging.properties
+
 ## Build property files into the library.
 property_files = \
 gnu/regexp/MessagesBundle.properties \
@@ -498,9 +501,16 @@ libgcj-@gcc_version@.jar: $(all_java_source_files)
        @: $(call write_entries_to_file,$?,libgcj.sourcelist)
        $(JAVAC) $(JCFLAGS) -classpath '' -bootclasspath $(here):$(srcdir) -d $(here) @libgcj.sourcelist
 ## Note that we explicitly want to include directory information.
-       find java gnu javax org -type d -o -type f -name '*.class' | \
-         sed -e '/\/\./d' -e '/\/xlib/d' | \
-         $(ZIP) cfM0E@ $@
+       (find java gnu javax org -type d -o -type f -name '*.class'; \
+## Ugly code to avoid "echo -C".  Must separate each entry by a newline
+## Gross but easy.
+       for file in $(all_property_files); do \
+         echo "x-C" | sed -e 's/^.//'; \
+         echo $(srcdir); \
+         echo $$file; \
+       done) | \
+         sed -e '/\/xlib/d' -e '/\/\.libs/d' -e '/\/\.deps/d' | \
+         $(ZIP) -cfM0E@ $@
 
 # This next rule seems backward, but reflects the fact
 # that 1) all classfiles are compiled in one go when the
@@ -516,12 +526,19 @@ else # !ONESTEP
 .java.class:
        $(JAVAC) $(JCFLAGS) -classpath '' -bootclasspath $(here):$(srcdir) -d $(here) $<
 
-libgcj-@gcc_version@.jar: $(all_java_class_files)
+libgcj-@gcc_version@.jar: $(all_java_class_files) $(all_property_files)
        -@rm -f libgcj-@gcc_version@.jar
 ## Note that we explicitly want to include directory information.
-       find java gnu javax org -type d -o -type f -name '*.class' | \
-         sed -e '/\/\./d' -e '/\/xlib/d' | \
-         $(ZIP) cfM0E@ $@
+       (find java gnu javax org -type d -o -type f -name '*.class'; \
+## Ugly code to avoid "echo -C".  Must separate each entry by a newline
+## Gross but easy.
+       for file in $(all_property_files); do \
+         echo "x-C" | sed -e 's/^.//'; \
+         echo $(srcdir); \
+         echo $$file; \
+       done) | \
+         sed -e '/\/xlib/d' -e '/\/\.libs/d' -e '/\/\.deps/d' | \
+         $(ZIP) -cfM0E@ $@
 
 endif
 
index b07a404ab072e3b53e5718d574333cddc70e205e..678acdcb493998fc2f9ad32a7d041c1063a36518 100644 (file)
@@ -4671,6 +4671,9 @@ all_java_source_files = \
     $(xlib_java_source_files)
 
 all_java_class_files = $(all_java_source_files:.java=.class)
+all_property_files = $(property_files) $(jgss_property_files) \
+    java/util/logging/logging.properties
+
 property_files = \
 gnu/regexp/MessagesBundle.properties \
 gnu/regexp/MessagesBundle_fr.properties
@@ -23159,9 +23162,14 @@ $(lib_gnu_java_awt_peer_gtk_la_OBJECTS): $(lib_gnu_java_awt_peer_gtk_la_DEPENDEN
 @ONESTEP_TRUE@ @echo Compiling Java sourcefiles...
 @ONESTEP_TRUE@ @: $(call write_entries_to_file,$?,libgcj.sourcelist)
 @ONESTEP_TRUE@ $(JAVAC) $(JCFLAGS) -classpath '' -bootclasspath $(here):$(srcdir) -d $(here) @libgcj.sourcelist
-@ONESTEP_TRUE@ find java gnu javax org -type d -o -type f -name '*.class' | \
-@ONESTEP_TRUE@   sed -e '/\/\./d' -e '/\/xlib/d' | \
-@ONESTEP_TRUE@   $(ZIP) cfM0E@ $@
+@ONESTEP_TRUE@ (find java gnu javax org -type d -o -type f -name '*.class'; \
+@ONESTEP_TRUE@ for file in $(all_property_files); do \
+@ONESTEP_TRUE@   echo "x-C" | sed -e 's/^.//'; \
+@ONESTEP_TRUE@   echo $(srcdir); \
+@ONESTEP_TRUE@   echo $$file; \
+@ONESTEP_TRUE@ done) | \
+@ONESTEP_TRUE@   sed -e '/\/xlib/d' -e '/\/\.libs/d' -e '/\/\.deps/d' | \
+@ONESTEP_TRUE@   $(ZIP) -cfM0E@ $@
 
 # This next rule seems backward, but reflects the fact
 # that 1) all classfiles are compiled in one go when the
@@ -23175,11 +23183,16 @@ $(lib_gnu_java_awt_peer_gtk_la_OBJECTS): $(lib_gnu_java_awt_peer_gtk_la_DEPENDEN
 @ONESTEP_FALSE@.java.class:
 @ONESTEP_FALSE@        $(JAVAC) $(JCFLAGS) -classpath '' -bootclasspath $(here):$(srcdir) -d $(here) $<
 
-@ONESTEP_FALSE@libgcj-@gcc_version@.jar: $(all_java_class_files)
+@ONESTEP_FALSE@libgcj-@gcc_version@.jar: $(all_java_class_files) $(all_property_files)
 @ONESTEP_FALSE@        -@rm -f libgcj-@gcc_version@.jar
-@ONESTEP_FALSE@        find java gnu javax org -type d -o -type f -name '*.class' | \
-@ONESTEP_FALSE@          sed -e '/\/\./d' -e '/\/xlib/d' | \
-@ONESTEP_FALSE@          $(ZIP) cfM0E@ $@
+@ONESTEP_FALSE@        (find java gnu javax org -type d -o -type f -name '*.class'; \
+@ONESTEP_FALSE@        for file in $(all_property_files); do \
+@ONESTEP_FALSE@          echo "x-C" | sed -e 's/^.//'; \
+@ONESTEP_FALSE@          echo $(srcdir); \
+@ONESTEP_FALSE@          echo $$file; \
+@ONESTEP_FALSE@        done) | \
+@ONESTEP_FALSE@          sed -e '/\/xlib/d' -e '/\/\.libs/d' -e '/\/\.deps/d' | \
+@ONESTEP_FALSE@          $(ZIP) -cfM0E@ $@
 
 mostlyclean-local:
        find . -name '*.lo' -print | xargs $(LIBTOOL) rm -f