summaryrefslogtreecommitdiff
path: root/x11/xpmicons
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>2006-11-10 16:49:58 +0000
committertv <tv@pkgsrc.org>2006-11-10 16:49:58 +0000
commit69bd6a4b071a81759f0c91a06f51d108972f7f89 (patch)
tree64a047ffb2dbab43bc33e385546b038bd886cde0 /x11/xpmicons
parent7784e36a575333197f4e40ed7e97cd28ec05d77f (diff)
downloadpkgsrc-69bd6a4b071a81759f0c91a06f51d108972f7f89.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 'x11/xpmicons')
-rw-r--r--x11/xpmicons/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/x11/xpmicons/Makefile b/x11/xpmicons/Makefile
index d0b6ae2951c..d7a349ba7a2 100644
--- a/x11/xpmicons/Makefile
+++ b/x11/xpmicons/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2006/10/24 16:20:43 joerg Exp $
+# $NetBSD: Makefile,v 1.15 2006/11/10 16:49:58 tv Exp $
DISTNAME= xpmicons-1.0
PKGREVISION= 4
@@ -31,10 +31,12 @@ PLIST_SRC+= PLIST.icons
.endif
post-extract:
- find ${WRKSRC} -type d -name .xvpics -exec rm -rf {} \; -prune
+ find ${WRKSRC} -type d -name .xvpics -print | ${XARGS} rm -rf
do-install:
- find ${WRKSRC} -name \*.xpm -exec ${INSTALL_DATA} {} ${PREFIX}/include/X11/pixmaps \;
- find ${WRKSRC} -name \*.xbm -exec ${INSTALL_DATA} {} ${PREFIX}/include/X11/bitmaps \;
+ find ${WRKSRC} -name \*.xpm -print | \
+ while read f; do ${INSTALL_DATA} $$f ${PREFIX}/include/X11/pixmaps; done
+ find ${WRKSRC} -name \*.xbm -print | \
+ while read f; do ${INSTALL_DATA} $$f ${PREFIX}/include/X11/bitmaps; done
.include "../../mk/bsd.pkg.mk"