freebsd-nq/share/zoneinfo/Makefile
Edwin Groothuis f281c10a84 Replace description on how to do CVS imports on this module with a
description on how to do SVN imports on this module.

Approved by:	bde (implicit)
2008-08-08 04:37:43 +00:00

60 lines
1.5 KiB
Makefile

# $FreeBSD$
#
# HOW TO UPDATE THE ZONEINFO DATA
#
# With the use of subversion, this is a little bit simpler than the CVS method.
#
# Import the new sources to the vendor branch:
#
# $ cd ~/svn/vendor/tzdata/dist
# $ tar zxvf /usr/ports/distfile/tzdata2008X.tar.gz
# (check with "svn stat" and "svn diff" if it all makes sense)
# $ svn commit # Commit message: "Vendor import of tzdata2008X (+details)"
#
# Tag it
#
# $ cd ~/svn/vendor/tzdata
# $ svn cp svn+ssh://svn.freebsd.org/base/vendor/tzdata/dist \
# svn+ssh://svn.freebsd.org/base/vendor/tzdata/tzdata2008X
# $ svn update
#
# Merge-from-vendor
#
# $ cd ~svn/head/share/zoneinfo
# $ svn update
# $ svn merge --accept=postpone \
# svn+ssh://svn.freebsd.org/base/vendor/tzdata/dist .
# $ svn diff --no-diff-deleted \
# --old=svn+ssh://svn.freebsd.org/base/vendor/tzdata/dist --new=.
# $ svn commit
#
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>