Fix XULRunner build bustage. Don't use xargs, since options aren't standard between OSes. Instead, use tar to copy directory structure.

git-svn-id: svn://10.0.0.236/trunk@208638 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pedemont%us.ibm.com 2006-08-28 17:15:52 +00:00
parent 0c67c826f4
commit bab0f02654

View File

@ -1537,9 +1537,12 @@ JAVA_INSTALL_DIR = $(JAVA_DIST_DIR)/$(XPI_NAME)
else
JAVA_INSTALL_DIR = $(JAVA_DIST_DIR)/default
endif
export:: $(JAVA_DIST_DIR) $(JAVADEPFILES)
cd $(JAVA_GEN_DIR) && find . -name "*.java" \
-exec sh -c "dirname {} | sed 's/^\.\///' | xargs -I % $(NSINSTALL) $(IFLAGS1) {} ../$(JAVA_INSTALL_DIR)/%" \;
$(JAVA_INSTALL_DIR):
$(NSINSTALL) -D $@
export:: $(JAVA_DIST_DIR) $(JAVADEPFILES) $(JAVA_INSTALL_DIR)
cd $(JAVA_GEN_DIR) && tar $(TAR_CREATE_FLAGS) - * | (cd "../$(JAVA_INSTALL_DIR)" && tar -xf -)
endif # XPIDLSRCS || SDK_XPIDLSRCS
endif # MOZ_JAVAXPCOM