summaryrefslogtreecommitdiff
path: root/share/zoneinfo
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-11-13 07:03:35 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-11-13 07:03:35 +0000
commit40048bc07623cf1a44e1d2bfbe5319b60af9cdcf (patch)
tree29b3ea197aa4bfa6301ae31b1b6717060267c1c9 /share/zoneinfo
parent0bfd5c1083b57afe3844e23f9ae36a047de1f87e (diff)
handle yearistype.sh not being +x by copying it to another name which can be chmod +x
Diffstat (limited to 'share/zoneinfo')
-rw-r--r--share/zoneinfo/Makefile25
1 files changed, 16 insertions, 9 deletions
diff --git a/share/zoneinfo/Makefile b/share/zoneinfo/Makefile
index 9a61ee46e54..93158d6edd0 100644
--- a/share/zoneinfo/Makefile
+++ b/share/zoneinfo/Makefile
@@ -39,6 +39,7 @@ REDO= posix_only
# Since "." may not be in PATH...
YEARISTYPE= ${.CURDIR}/datfiles/yearistype.sh
+YEARISTYPECOPY= ${.OBJDIR}/yearistypecopy
YDATA= africa antarctica asia australasia \
europe northamerica southamerica pacificnew etcetera factory \
@@ -51,29 +52,35 @@ USNO= usno1988 usno1989
ZIC=zic
-posix_only: ${TDATA}
+${YEARISTYPECOPY}:
+ cp ${YEARISTYPE} yearistypecopy
+ chmod u+x yearistypecopy
+
+posix_only: ${TDATA} ${YEARISTYPECOPY}
(cd ${.CURDIR}/datfiles; \
- ${ZIC} -y ${YEARISTYPE} -d ${TZDIR} -L /dev/null ${TDATA})
+ ${ZIC} -y ${YEARISTYPECOPY} -d ${TZDIR} -L /dev/null ${TDATA})
-right_only: leapseconds ${TDATA}
+right_only: leapseconds ${TDATA} ${YEARISTYPECOPY}
(cd ${.CURDIR}/datfiles; \
- ${ZIC} -y ${YEARISTYPE} -d ${TZDIR} -L leapseconds ${TDATA})
+ ${ZIC} -y ${YEARISTYPECOPY} -d ${TZDIR} -L leapseconds ${TDATA})
-other_two: leapseconds ${TDATA}
+other_two: leapseconds ${TDATA} ${YEARISTYPECOPY}
(cd ${.CURDIR}/datfiles; \
- ${ZIC} -y ${YEARISTYPE} -d ${TZDIR}/posix -L /dev/null ${TDATA})
+ ${ZIC} -y ${YEARISTYPECOPY} -d ${TZDIR}/posix -L /dev/null ${TDATA})
(cd ${.CURDIR}/datfiles; \
- ${ZIC} -y ${YEARISTYPE} -d ${TZDIR}/right -L leapseconds ${TDATA})
+ ${ZIC} -y ${YEARISTYPECOPY} -d ${TZDIR}/right -L leapseconds ${TDATA})
posix_right: posix_only other_two
right_posix: right_only other_two
-realinstall: ${DATA} ${REDO}
+realinstall: ${DATA} ${REDO} ${YEARISTYPECOPY}
(cd ${.CURDIR}/datfiles; \
- ${ZIC} -y ${YEARISTYPE} -d ${TZDIR} -p ${POSIXRULES})
+ ${ZIC} -y ${YEARISTYPECOPY} -d ${TZDIR} -p ${POSIXRULES})
chown -R ${BINOWN}:${BINGRP} ${TZDIR}
find ${TZDIR} -type f | xargs chmod a=r
+CLEANFILES+= yearistypecopy
+
.PATH: ${.CURDIR}/datfiles
.include <bsd.prog.mk>