aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschnetter <schnetter@83718e91-0e4f-0410-abf4-91180603181f>2008-04-18 23:32:59 +0000
committerschnetter <schnetter@83718e91-0e4f-0410-abf4-91180603181f>2008-04-18 23:32:59 +0000
commit8085ec0e1a4320700ed96f8339f6a2aec12ad710 (patch)
tree07b495aad5a792329a0d8b9b677726df4899c918
parent07b8492442f086518689bef5027008de1ec70114 (diff)
Follow symbolic links when creating tarballs from thorns.
Speed up processing files on systems which are not AIX. git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/Formaline/trunk@175 83718e91-0e4f-0410-abf4-91180603181f
-rw-r--r--src/make.configuration.deps11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/make.configuration.deps b/src/make.configuration.deps
index 116c0a9..700c547 100644
--- a/src/make.configuration.deps
+++ b/src/make.configuration.deps
@@ -174,7 +174,7 @@ $(TARBALL_DIR)/cactus-thorn-source-%.tar.gz: $(TARBALL_DIR)/cactus-thorn-source-
# files that do not influence the executable.
$(TARBALL_DIR)/cactus-thorn-source-%.files: $(CCTK_LIBDIR)/$(LIBNAME_PREFIX)$(CCTK_LIBNAME_PREFIX)%$(LIBNAME_SUFFIX) $(TARBALL_DIR)/cactus-thorn-source-%.ccldeps
cd $(CCTK_HOME) && \
- find arrangements/$(filter %/$*,$(THORNS)) \
+ find arrangements/$(filter %/$*,$(THORNS))/. \
-name 'doc' -prune -o \
-name 'par' -prune -o \
-name 'test' -prune -o \
@@ -211,7 +211,16 @@ $(TARBALL_DIR)/cactus-thorn-source-%.ccldeps:
# be used via xargs.
FRM-OBJS-words = $(words $(FRM-OBJS))
+
+ifeq ($(shell uname),AIX)
+# Be conservative about the maximum number of objects that can be
+# handled at once. AIX has a command line length limit of about
+# 32000. Each object's path name may be about 200 characters long.
FRM-OBJS-words-max = 100
+else
+# Assume that the system has no limit to speak of.
+FRM-OBJS-words-max = 10000
+endif
ifeq ($(shell test $(FRM-OBJS-words) -le $(FRM-OBJS-words-max) && echo 1), 1)