summaryrefslogtreecommitdiff
path: root/share/zoneinfo/Makefile
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@cvs.openbsd.org>2017-10-06 19:58:38 +0000
committerChristian Weisgerber <naddy@cvs.openbsd.org>2017-10-06 19:58:38 +0000
commitb0b3e01aafbe2b1baf161ac889c0779aec57b23d (patch)
treec2b537ed3b128d11e9759d74f2d993d58c8f14b5 /share/zoneinfo/Makefile
parentbdbfe8542d3779c2932ee03047c84a050edc7a97 (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 'share/zoneinfo/Makefile')
-rw-r--r--share/zoneinfo/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/share/zoneinfo/Makefile b/share/zoneinfo/Makefile
index 37789f0b6df..43b5d34bc3d 100644
--- a/share/zoneinfo/Makefile
+++ b/share/zoneinfo/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.11 2016/11/24 14:38:30 millert Exp $
+# $OpenBSD: Makefile,v 1.12 2017/10/06 19:58:37 naddy Exp $
# $NetBSD: Makefile,v 1.14 1995/04/22 12:10:17 cgd Exp $
# Change the line below for your time zone (after finding the zone you want in
@@ -81,8 +81,9 @@ realinstall: ${DATA} ${REDO} ${YEARISTYPECOPY}
(cd ${.CURDIR}/datfiles; \
${ZIC} -y ${YEARISTYPECOPY} -d ${TZDIR} -p ${POSIXRULES})
chown -R ${BINOWN}:${BINGRP} ${TZDIR}
- find ${TZDIR} -type f -print0 | xargs -0r chmod a=r
- find ${TZDIR} -type d -print0 | xargs -0r chmod a=rx
+ find ${TZDIR} \
+ -type f -exec chmod a=r {} + -o \
+ -type d -exec chmod a=rx {} +
${INSTALL} -c -o root -g bin -m 644 ${.CURDIR}/datfiles/iso3166.tab \
${DESTDIR}/usr/share/misc
${INSTALL} -c -o root -g bin -m 644 ${.CURDIR}/datfiles/zone.tab \