summaryrefslogtreecommitdiffstats
path: root/share/zoneinfo
diff options
context:
space:
mode:
authornaddy <naddy@openbsd.org>2017-10-06 19:58:37 +0000
committernaddy <naddy@openbsd.org>2017-10-06 19:58:37 +0000
commit0cb6afd9121a112983a7696a7b5e4b6598a8c0d6 (patch)
tree2c2465f65bed7eb74a106dbc5b91350e36b195c5 /share/zoneinfo
parentThe mount point flags were displayed in octal when printed by ddb. (diff)
downloadwireguard-openbsd-0cb6afd9121a112983a7696a7b5e4b6598a8c0d6.tar.xz
wireguard-openbsd-0cb6afd9121a112983a7696a7b5e4b6598a8c0d6.zip
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')
-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 \