pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc Use find -print | xargs rather than find -exec.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f30fed89698e
branches:  trunk
changeset: 521382:f30fed89698e
user:      tv <tv%pkgsrc.org@localhost>
date:      Fri Nov 10 16:50:54 2006 +0000

description:
Use find -print | xargs rather than find -exec.

diffstat:

 chat/pircbot/Makefile    |  6 +++---
 editors/abiword/Makefile |  6 +++---
 x11/ruby-tk/Makefile     |  5 ++---
 3 files changed, 8 insertions(+), 9 deletions(-)

diffs (60 lines):

diff -r b95db2df52a3 -r f30fed89698e chat/pircbot/Makefile
--- a/chat/pircbot/Makefile     Fri Nov 10 16:49:58 2006 +0000
+++ b/chat/pircbot/Makefile     Fri Nov 10 16:50:54 2006 +0000
@@ -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
@@ -16,8 +16,8 @@
 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
diff -r b95db2df52a3 -r f30fed89698e editors/abiword/Makefile
--- a/editors/abiword/Makefile  Fri Nov 10 16:49:58 2006 +0000
+++ b/editors/abiword/Makefile  Fri Nov 10 16:50:54 2006 +0000
@@ -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"
 
@@ -43,9 +43,9 @@
                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 \
diff -r b95db2df52a3 -r f30fed89698e x11/ruby-tk/Makefile
--- a/x11/ruby-tk/Makefile      Fri Nov 10 16:49:58 2006 +0000
+++ b/x11/ruby-tk/Makefile      Fri Nov 10 16:50:54 2006 +0000
@@ -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}
@@ -23,8 +23,7 @@
 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



Home | Main Index | Thread Index | Old Index