From 884d751199e2ca7cbc24da10ce00fd742108710a Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Fri, 13 Feb 2015 15:23:35 +0000 Subject: [PATCH] Modified the vzic makefile to generate new zoneinfo data by fetching the latest tzdata file from ietf.org/timezones/tzdata-latest.tar.gz and running vzic to update the .ics files as needed. - Legacy-Id: 9087 --- vzic/Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/vzic/Makefile b/vzic/Makefile index aca3b6c09..a732d0bac 100644 --- a/vzic/Makefile +++ b/vzic/Makefile @@ -49,7 +49,7 @@ CFLAGS = -g -DOLSON_DIR=\"$(OLSON_DIR)\" -DPRODUCT_ID='"$(PRODUCT_ID)"' -DTZID_P OBJECTS = vzic.o vzic-parse.o vzic-dump.o vzic-output.o -all: vzic +all: vzic zoneinfo vzic: $(OBJECTS) $(CC) $(OBJECTS) $(GLIB_LDADD) -o vzic @@ -57,6 +57,12 @@ vzic: $(OBJECTS) test-vzic: test-vzic.o $(CC) test-vzic.o $(LIBICAL_LDADD) -o test-vzic +zoneinfo: vzic + mkdir -p tzdata + cd tzdata; wget -N http://www.ietf.org/timezones/tzdata-latest.tar.gz + cd tzdata; tar xzf tzdata-latest.tar.gz + vzic --olson-dir tzdata --pure + # Dependencies. $(OBJECTS): vzic.h vzic.o vzic-parse.o: vzic-parse.h @@ -83,8 +89,6 @@ test-changes: vzic test-vzic diff -ru zoneinfo/ChangesVzic test-output clean: - -rm -rf vzic $(OBJECTS) *~ ChangesVzic RulesVzic ZonesVzic RulesPerl ZonesPerl test-vzic test-vzic.o + -rm -rf vzic $(OBJECTS) *~ ChangesVzic RulesVzic ZonesVzic RulesPerl ZonesPerl test-vzic test-vzic.o tzdata .PHONY: clean perl-dump test-parse - -