diff options
author | Christian Weisgerber <naddy@cvs.openbsd.org> | 2017-10-06 19:58:38 +0000 |
---|---|---|
committer | Christian Weisgerber <naddy@cvs.openbsd.org> | 2017-10-06 19:58:38 +0000 |
commit | b0b3e01aafbe2b1baf161ac889c0779aec57b23d (patch) | |
tree | c2b537ed3b128d11e9759d74f2d993d58c8f14b5 /include/Makefile | |
parent | bdbfe8542d3779c2932ee03047c84a050edc7a97 (diff) |
Use the modern POSIX idiom "-exec ... {} +" instead of find|xargs and
combine the two find(1) invocations into one.
From Klemens Nanni; ok tb@
Diffstat (limited to 'include/Makefile')
-rw-r--r-- | include/Makefile | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/include/Makefile b/include/Makefile index 1d7f894b595..24ada3330ea 100644 --- a/include/Makefile +++ b/include/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.219 2017/04/17 15:53:21 kettenis Exp $ +# $OpenBSD: Makefile,v 1.220 2017/10/06 19:58:37 naddy Exp $ # $NetBSD: Makefile,v 1.59 1996/05/15 21:36:43 jtc Exp $ # @(#)Makefile 5.45.1.1 (Berkeley) 5/6/91 @@ -100,10 +100,9 @@ includes: cd ${.CURDIR}/$$i && ${RUN_MAKE}; \ done chown -RP ${BINOWN}:${BINGRP} ${DESTDIR}/usr/include - find ${DESTDIR}/usr/include -type f -print0 | \ - xargs -0r chmod a=r - find ${DESTDIR}/usr/include \( -type d -o -type l \) -print0 | \ - xargs -0r chmod -h u=rwx,go=rx + find ${DESTDIR}/usr/include \ + -type f -exec chmod a=r {} + -o \ + \( -type d -o -type l \) -exec chmod -h u=rwx,go=rx {} + copies: @echo copies: ${LDIRS} |