summaryrefslogtreecommitdiffstats
path: root/share/zoneinfo/Makefile
blob: 0a0b5a5e89b91059356267e85cc6656b876d97ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# $FreeBSD$

#
# HOW TO UPDATE THE ZONEINFO DATA
#
# In a clean directory, unpack the distribution archive and run:
#
# $ cvs -d :ext:ncvs.freebsd.org:/home/ncvs import -b 1.1.2 \
#	src/share/zoneinfo ADO tzdataYYYYt
#
# where YYYYt is the year and the version of the distribution, for
# example 2004h.
#
# Then go to the checked out source, and merge the changes from the
# previous tag to the new tag in the HEAD:
#
# $ cd ../src/share/zoneinfo
# $ cvs update -jtzdataYYYYp -j tzdataYYYYt
#
# Update it again:
# 
# $ cvs update
#
# And push it back into CVS:
#
# $ cvs ci
#

CLEANFILES+=	yearistype

.if defined(LEAPSECONDS)
LEAPFILE=	-L leapseconds
.else
LEAPFILE=
.endif

TZFILES=	africa antarctica asia australasia etcetera europe \
		factory northamerica southamerica
POSIXRULES=	America/New_York

.if defined(OLDTIMEZONES)
TZFILES+=	backward systemv
.endif

all: yearistype

beforeinstall:
	umask 022; cd ${.CURDIR}; \
	zic -D -d ${DESTDIR}/usr/share/zoneinfo -p ${POSIXRULES} \
	    -u ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
	    ${LEAPFILE} -y ${.OBJDIR}/yearistype ${TZFILES}
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
	    ${.CURDIR}/zone.tab ${DESTDIR}/usr/share/zoneinfo/

.include <bsd.prog.mk>
OpenPOWER on IntegriCloud