Skip to content

Commit

Permalink
For some reason, Interix "find ... -exec" leaks a little bit of memory,
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tv committed Nov 10, 2006
1 parent d74fc45 commit b1a3db0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions 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
Expand Down Expand Up @@ -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"

0 comments on commit b1a3db0

Please sign in to comment.