summaryrefslogtreecommitdiff
path: root/graphics/vtk-docs
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>2006-11-10 16:30:08 +0000
committertv <tv@pkgsrc.org>2006-11-10 16:30:08 +0000
commit1124f19fc88fd7bdbab613710aabce898f831a14 (patch)
treef4a3b576ed434ca7965a970c28e9b4509fd8bf38 /graphics/vtk-docs
parent21e14c6c7f15a109f15c6528ff8bfb341587eeca (diff)
downloadpkgsrc-1124f19fc88fd7bdbab613710aabce898f831a14.tar.gz
For some reason, Interix "find ... -exec" leaks a little bit of memory,
which on large trees involving thousands of -exec's, makes find turn into a humongous process. It's faster on most systems to use other methods anyway, so use xargs where practical, or pipe to a "while read f; do ..." loop and let the shell do what it was meant to do -- run programs.
Diffstat (limited to 'graphics/vtk-docs')
-rw-r--r--graphics/vtk-docs/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/graphics/vtk-docs/Makefile b/graphics/vtk-docs/Makefile
index f04c40f8e71..51da921c722 100644
--- a/graphics/vtk-docs/Makefile
+++ b/graphics/vtk-docs/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2006/01/29 03:32:17 rillig Exp $
+# $NetBSD: Makefile,v 1.5 2006/11/10 16:30:08 tv Exp $
#
DISTNAME= VTKDocHtml-4.2
@@ -12,7 +12,8 @@ HTML_DIR= share/doc/${PKGNAME}
do-install:
${INSTALL_DATA_DIR} ${PREFIX:Q}/${HTML_DIR:Q}
- ${FIND} ${WRKSRC:Q} -type f -exec ${INSTALL_DATA} {} ${PREFIX:Q}/${HTML_DIR:Q} \;
+ ${FIND} ${WRKSRC:Q} -type f -print | \
+ while read f; do ${INSTALL_DATA} $$f ${PREFIX:Q}/${HTML_DIR:Q}; done
.include "../../graphics/vtk/Makefile.common"