pkgsrc-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d8dfaeed8e19
branches:  trunk
changeset: 521383:d8dfaeed8e19
user:      tv <tv%pkgsrc.org@localhost>
date:      Fri Nov 10 17:32:24 2006 +0000

description:
Use find -print | xargs rather than find -exec.
Use && chains rather than ; so that errors are not thrown away.

diffstat:

 graphics/urt/Makefile |  16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diffs (30 lines):

diff -r f30fed89698e -r d8dfaeed8e19 graphics/urt/Makefile
--- a/graphics/urt/Makefile     Fri Nov 10 16:50:54 2006 +0000
+++ b/graphics/urt/Makefile     Fri Nov 10 17:32:24 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.44 2006/09/09 02:42:01 obache Exp $
+# $NetBSD: Makefile,v 1.45 2006/11/10 17:32:24 tv Exp $
 
 DISTNAME=      urt
 PKGNAME=       urt-3.1b1
@@ -29,13 +29,13 @@
 
 post-install:
        ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/urt ${PREFIX}/share/examples/urt
-       cd ${PREFIX}/share/doc/urt && (\
-           ${PAX} -r -p m -s '/doc/./' -f ${DISTDIR}/urt-doc.tar; )
-       cd ${PREFIX}/share/examples/urt && (\
-           ${PAX} -r -p m -f ${DISTDIR}/urt-img.tar; \
-           ${CHOWN} -R ${ROOT_USER}:${ROOT_GROUP} . ; \
-           ${FIND} . -type d -exec ${CHMOD} 755 '{}' \; ; \
-           ${FIND} . -type f -exec ${CHMOD} 644 '{}' \;)
+       cd ${PREFIX}/share/doc/urt && \
+           ${PAX} -r -p m -s '/doc/./' -f ${DISTDIR}/urt-doc.tar
+       cd ${PREFIX}/share/examples/urt && \
+           ${PAX} -r -p m -f ${DISTDIR}/urt-img.tar && \
+           ${CHOWN} -R ${ROOT_USER}:${ROOT_GROUP} . && \
+           ${FIND} . -type d -print | ${XARGS} ${CHMOD} 755 && \
+           ${FIND} . -type f -print | ${XARGS} ${CHMOD} 644
 
 .include "../../graphics/netpbm/buildlink3.mk"
 .include "../../mk/x11.buildlink3.mk"



Home | Main Index | Thread Index | Old Index