summaryrefslogtreecommitdiff
path: root/graphics/vtk-docs
diff options
context:
space:
mode:
authortv <tv>2006-11-10 16:30:08 +0000
committertv <tv>2006-11-10 16:30:08 +0000
commiteb85f0873134dec83815f57d0b42e395dc069cb8 (patch)
treef4a3b576ed434ca7965a970c28e9b4509fd8bf38 /graphics/vtk-docs
parent18329b0ddd18735e723f93617e8a04a004e21ce1 (diff)
downloadpkgsrc-eb85f0873134dec83815f57d0b42e395dc069cb8.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"