commit: 8a0710d4da07db9ca0d2ce84b79a89657e29ddcc Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> AuthorDate: Sat Dec 5 07:32:58 2015 +0000 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> CommitDate: Sat Dec 5 21:13:48 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a0710d4
toolchain.eclass: convert `find|xargs` to `find -exec` eclass/toolchain.eclass | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index cea6c05..82b77ad 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1505,7 +1505,7 @@ toolchain_src_compile() { # Do not make manpages if we do not have perl ... [[ ! -x /usr/bin/perl ]] \ - && find "${WORKDIR}"/build -name '*.[17]' | xargs touch + && find "${WORKDIR}"/build -name '*.[17]' -exec touch {} + gcc_do_make ${GCC_MAKE_TARGET} } @@ -1713,9 +1713,8 @@ toolchain_src_install() { # install testsuite results if use regression-test; then docinto testsuite - find "${WORKDIR}"/build -type f -name "*.sum" -print0 | xargs -0 dodoc - find "${WORKDIR}"/build -type f -path "*/testsuite/*.log" -print0 \ - | xargs -0 dodoc + find "${WORKDIR}"/build -type f -name "*.sum" -exec dodoc {} + + find "${WORKDIR}"/build -type f -path "*/testsuite/*.log" -exec dodoc {} + fi # Rather install the script, else portage with changing $FILESDIR @@ -1810,7 +1809,7 @@ gcc_movelibs() { for FROMDIR in ${removedirs} ; do rmdir "${D}"${FROMDIR} >& /dev/null done - find "${D}" -type d | xargs rmdir >& /dev/null + find -depth "${D}" -type d -exec rmdir {} + >& /dev/null } # make sure the libtool archives have libdir set to where they actually