From b0b3e01aafbe2b1baf161ac889c0779aec57b23d Mon Sep 17 00:00:00 2001 From: Christian Weisgerber Date: Fri, 6 Oct 2017 19:58:38 +0000 Subject: Use the modern POSIX idiom "-exec ... {} +" instead of find|xargs and combine the two find(1) invocations into one. From Klemens Nanni; ok tb@ --- include/Makefile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'include/Makefile') 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} -- cgit v1.2.3