Skip to content

Commit

Permalink
Use find -print | xargs rather than find -exec.
Browse files Browse the repository at this point in the history
  • Loading branch information
tv committed Nov 10, 2006
1 parent b1a3db0 commit 8582c5f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
6 changes: 3 additions & 3 deletions chat/pircbot/Makefile
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.14 2006/03/04 21:29:04 jlam Exp $
# $NetBSD: Makefile,v 1.15 2006/11/10 16:50:54 tv Exp $
#

DISTNAME= pircbot-0.9.11
Expand All @@ -16,8 +16,8 @@ NO_CONFIGURE= YES
NO_BUILD= YES

post-extract:
${FIND} ${WRKSRC} -type d -exec ${CHMOD} 755 {} \;
${FIND} ${WRKSRC} -type f -exec ${CHMOD} 644 {} \;
${FIND} ${WRKSRC} -type d -print | ${XARGS} ${CHMOD} 755
${FIND} ${WRKSRC} -type f -print | ${XARGS} ${CHMOD} 644

do-install:
${INSTALL_DATA_DIR} ${PREFIX}/lib/java
Expand Down
6 changes: 3 additions & 3 deletions editors/abiword/Makefile
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.105 2006/11/09 15:25:32 adam Exp $
# $NetBSD: Makefile,v 1.106 2006/11/10 16:53:28 tv Exp $

.include "Makefile.common"

Expand Down Expand Up @@ -43,9 +43,9 @@ post-build:
ABI_DOC_DEST=${WRKDIR} \
ABI_DOC_PROG=${WRKSRC}/src/wp/main/unix/AbiWord-2.4 \
./make-html.sh
find ${WRKDIR}/help -type d -exec ${CHMOD} ${PKGDIRMODE} "{}" \;
find ${WRKDIR}/help -type d -print | ${XARGS} ${CHMOD} ${PKGDIRMODE}
find ${WRKDIR}/help \( -name "*.abw.orig" -or -name "*.abw" \
-or -name "*.info" -or -name "*.xhtml" \) -exec ${RM} "{}" \;
-or -name "*.info" -or -name "*.xhtml" \) -print | ${XARGS} ${RM} -f

post-install:
${INSTALL_MAN} ${WRKDIR}/${DISTNAME}/abiword-docs/man/abiword.1 \
Expand Down
5 changes: 2 additions & 3 deletions x11/ruby-tk/Makefile
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.24 2006/09/07 15:43:20 taca Exp $
# $NetBSD: Makefile,v 1.25 2006/11/10 16:54:54 tv Exp $

DISTNAME= ${RUBY_DISTNAME}
PKGNAME= ${RUBY_PKGPREFIX}-tk-${RUBY_VERSION}
Expand All @@ -23,8 +23,7 @@ CONFIGURE_ARGS+= --with-X11-dir=${X11BASE:Q}
REPLACE_RUBY_DIRS= ${WRKSRC}/sample

pre-configure:
@cd ${WRKSRC}; \
${FIND} . \( -name '*.orig' -o -name '*.bak' \) -exec ${RM} -f {} \;
${FIND} ${WRKSRC} \( -name '*.orig' -o -name '*.bak' \) -print | ${XARGS} ${RM} -f

post-install:
${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/tk
Expand Down

0 comments on commit 8582c5f

Please sign in to comment.