argument list is too long. Hence the first patch invoked tar once for each file. This works, but is inefficient. This version of the patch uses cpio in pass through mode to copy all the files at once. PR: 35658 Submitted by: "Remco van 't Veer" <rwvtveer@xs4all.nl> Reviewed by: sobomax Approved by: sobomax
26 lines
1014 B
Plaintext
26 lines
1014 B
Plaintext
Index: Release.gmk
|
|
===================================================================
|
|
RCS file: /data/java/JDK2/javasrc_1_3_scsl/j2sdk1.3.1/make/common/Release.gmk,v
|
|
retrieving revision 1.7
|
|
diff -u -r1.7 common/Release.gmk
|
|
--- common/Release.gmk 21 Jan 2002 22:40:08 -0000 1.7
|
|
+++ common/Release.gmk 10 Apr 2002 18:02:30 -0000
|
|
@@ -521,10 +521,17 @@
|
|
@# src.jar
|
|
@#
|
|
$(MKDIR) -p $(JDK_IMAGE_DIR)/src
|
|
+ifeq ($(PLATFORM), bsd)
|
|
+ # Avoid the "argument list too long" problem.
|
|
+ ($(CD) $(SHARE_SRC)/classes; \
|
|
+ $(FIND) $(SOURCES) -name CVS -prune -o -name SCCS -prune -o -name '*.java' -print \
|
|
+ | $(CPIO) -pd $(JDK_IMAGE_DIR)/src)
|
|
+else
|
|
($(CD) $(SHARE_SRC)/classes; $(TAR) cf - \
|
|
`$(FIND) $(SOURCES) -name CVS -prune -o -name SCCS -prune -o \
|
|
-name '*.java' -print`)| \
|
|
($(CD) $(JDK_IMAGE_DIR)/src; $(TAR) xvf -)
|
|
+endif
|
|
@# We do not want to ship this, it isn't part of the build yet.
|
|
$(RM) -r $(JDK_IMAGE_DIR)/src/javax/swing/pending
|
|
$(MKDIR) -p $(JDK_IMAGE_DIR)/src/launcher
|