aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>2008-03-16 06:57:40 +0000
committerRalf Wildenhues <rwild@gcc.gnu.org>2008-03-16 06:57:40 +0000
commit0dc54e5cd1eb5aeffca573b3699b492143c4efc4 (patch)
treec16cd7efd9eb9c6a4f7ffbb5ed7adb2a9d45ff2a
parent32bc4cf410eeaa15d6750306d16a65f99ec5652a (diff)
downloadgcc-0dc54e5cd1eb5aeffca573b3699b492143c4efc4.zip
gcc-0dc54e5cd1eb5aeffca573b3699b492143c4efc4.tar.gz
gcc-0dc54e5cd1eb5aeffca573b3699b492143c4efc4.tar.bz2
Makefile.am (write_entries_to_file_split): New variable.
libjava/ 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> * Makefile.am (write_entries_to_file_split): New variable. (write_entries_to_file): Write out that many entries at once, for speed. * Makefile.in: Regenerate. From-SVN: r133268
-rw-r--r--libjava/ChangeLog7
-rw-r--r--libjava/Makefile.am15
-rw-r--r--libjava/Makefile.in16
3 files changed, 30 insertions, 8 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index bd92959..0ed16db 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -1,3 +1,10 @@
+2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * Makefile.am (write_entries_to_file_split): New variable.
+ (write_entries_to_file): Write out that many entries at once,
+ for speed.
+ * Makefile.in: Regenerate.
+
2008-03-13 Tom Tromey <tromey@redhat.com>
* java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader):
diff --git a/libjava/Makefile.am b/libjava/Makefile.am
index d840782..5b84c17 100644
--- a/libjava/Makefile.am
+++ b/libjava/Makefile.am
@@ -13,13 +13,20 @@ SUBDIRS += testsuite
endif
# write_entries_to_file - writes each entry in a list
-# to the specified file. Each entry is written individually
-# to accomodate systems with severe command-line-length
-# limitations.
+# to the specified file. Entries are written in chunks of
+# $(write_entries_to_file_split) to accomodate systems with
+# severe command-line-length limitations.
# Parameters:
# $(1): variable containing entries to iterate over
# $(2): output file
-write_entries_to_file = $(shell rm -f $(2) || :) $(shell touch $(2)) $(foreach object,$(1),$(shell echo $(object) >> $(2)))
+write_entries_to_file_split = 50
+write_entries_to_file = $(shell rm -f $(2) || :) $(shell touch $(2)) \
+ $(foreach range, \
+ $(shell i=1; while test $$i -le $(words $(1)); do \
+ echo $$i; i=`expr $$i + $(write_entries_to_file_split)`; done), \
+ $(shell echo $(wordlist $(range), \
+ $(shell expr $(range) + $(write_entries_to_file_split) - 1), $(1)) \
+ | tr ' ' '\n' >> $(2)))
## ################################################################
diff --git a/libjava/Makefile.in b/libjava/Makefile.in
index fae8669..47de0bd 100644
--- a/libjava/Makefile.in
+++ b/libjava/Makefile.in
@@ -820,13 +820,21 @@ gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
SUBDIRS = $(DIRLTDL) gcj include classpath $(am__append_1)
# write_entries_to_file - writes each entry in a list
-# to the specified file. Each entry is written individually
-# to accomodate systems with severe command-line-length
-# limitations.
+# to the specified file. Entries are written in chunks of
+# $(write_entries_to_file_split) to accomodate systems with
+# severe command-line-length limitations.
# Parameters:
# $(1): variable containing entries to iterate over
# $(2): output file
-write_entries_to_file = $(shell rm -f $(2) || :) $(shell touch $(2)) $(foreach object,$(1),$(shell echo $(object) >> $(2)))
+write_entries_to_file_split = 50
+write_entries_to_file = $(shell rm -f $(2) || :) $(shell touch $(2)) \
+ $(foreach range, \
+ $(shell i=1; while test $$i -le $(words $(1)); do \
+ echo $$i; i=`expr $$i + $(write_entries_to_file_split)`; done), \
+ $(shell echo $(wordlist $(range), \
+ $(shell expr $(range) + $(write_entries_to_file_split) - 1), $(1)) \
+ | tr ' ' '\n' >> $(2)))
+
# This is required by TL_AC_GXX_INCLUDE_DIR.
libsubdir = $(libdir)/gcc/$(target_noncanonical)/$(gcc_version)