Deleted Added
full compact
Makefile (198351) Makefile (198375)
1# $FreeBSD: head/share/zoneinfo/Makefile 198351 2009-10-21 20:59:12Z edwin $
1# $FreeBSD: head/share/zoneinfo/Makefile 198375 2009-10-22 20:59:51Z edwin $
2
3#
4# HOW TO UPDATE THE ZONEINFO DATA
5#
6# With the use of subversion, this is a little bit simpler than the CVS method.
7#
8# Import the new sources to the vendor branch:
9#

--- 40 unchanged lines hidden (view full) ---

50 umask 022; cd ${.CURDIR}; \
51 zic -D -d ${DESTDIR}/usr/share/zoneinfo -p ${POSIXRULES} \
52 -u ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
53 ${LEAPFILE} -y ${.OBJDIR}/yearistype ${TZFILES}
54 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
55 ${.CURDIR}/zone.tab ${DESTDIR}/usr/share/zoneinfo/
56
57afterinstall:
2
3#
4# HOW TO UPDATE THE ZONEINFO DATA
5#
6# With the use of subversion, this is a little bit simpler than the CVS method.
7#
8# Import the new sources to the vendor branch:
9#

--- 40 unchanged lines hidden (view full) ---

50 umask 022; cd ${.CURDIR}; \
51 zic -D -d ${DESTDIR}/usr/share/zoneinfo -p ${POSIXRULES} \
52 -u ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
53 ${LEAPFILE} -y ${.OBJDIR}/yearistype ${TZFILES}
54 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
55 ${.CURDIR}/zone.tab ${DESTDIR}/usr/share/zoneinfo/
56
57afterinstall:
58 @#
59 @# If the file /var/db/zoneinfo exists, and it is owned by root:wheel,
60 @# and the contents of it exists in /usr/share/zoneinfo, then reinstall
61 @# it.
62 @#
58#
59# If the file /var/db/zoneinfo exists, and it is owned by root:wheel,
60# and the contents of it exists in /usr/share/zoneinfo, then reinstall
61# it.
62#
63 @if [ -f ${DESTDIR}/var/db/zoneinfo -a -O ${DESTDIR}/var/db/zoneinfo \
64 -a -G ${DESTDIR}/var/db/zoneinfo ]; then \
65 zf=$$(cat ${DESTDIR}/var/db/zoneinfo); \
66 if [ -f ${DESTDIR}/usr/share/zoneinfo/$${zf} ]; then \
67 if [ ! -z "${DESTDIR}" ]; then \
68 optC="-C ${DESTDIR}"; \
69 fi; \
70 echo "Updating /etc/localtime"; \
71 tzsetup ${optC} -r; \
72 fi; \
73 else \
74 echo "Run tzsetup(8) manually to update /etc/localtime."; \
75 fi
76
77.include <bsd.prog.mk>
63 @if [ -f ${DESTDIR}/var/db/zoneinfo -a -O ${DESTDIR}/var/db/zoneinfo \
64 -a -G ${DESTDIR}/var/db/zoneinfo ]; then \
65 zf=$$(cat ${DESTDIR}/var/db/zoneinfo); \
66 if [ -f ${DESTDIR}/usr/share/zoneinfo/$${zf} ]; then \
67 if [ ! -z "${DESTDIR}" ]; then \
68 optC="-C ${DESTDIR}"; \
69 fi; \
70 echo "Updating /etc/localtime"; \
71 tzsetup ${optC} -r; \
72 fi; \
73 else \
74 echo "Run tzsetup(8) manually to update /etc/localtime."; \
75 fi
76
77.include <bsd.prog.mk>