Skip to content

Commit 884d751

Browse files
committed
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
1 parent 7bd647c commit 884d751

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

vzic/Makefile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,20 @@ CFLAGS = -g -DOLSON_DIR=\"$(OLSON_DIR)\" -DPRODUCT_ID='"$(PRODUCT_ID)"' -DTZID_P
4949

5050
OBJECTS = vzic.o vzic-parse.o vzic-dump.o vzic-output.o
5151

52-
all: vzic
52+
all: vzic zoneinfo
5353

5454
vzic: $(OBJECTS)
5555
$(CC) $(OBJECTS) $(GLIB_LDADD) -o vzic
5656

5757
test-vzic: test-vzic.o
5858
$(CC) test-vzic.o $(LIBICAL_LDADD) -o test-vzic
5959

60+
zoneinfo: vzic
61+
mkdir -p tzdata
62+
cd tzdata; wget -N http://www.ietf.org/timezones/tzdata-latest.tar.gz
63+
cd tzdata; tar xzf tzdata-latest.tar.gz
64+
vzic --olson-dir tzdata --pure
65+
6066
# Dependencies.
6167
$(OBJECTS): vzic.h
6268
vzic.o vzic-parse.o: vzic-parse.h
@@ -83,8 +89,6 @@ test-changes: vzic test-vzic
8389
diff -ru zoneinfo/ChangesVzic test-output
8490

8591
clean:
86-
-rm -rf vzic $(OBJECTS) *~ ChangesVzic RulesVzic ZonesVzic RulesPerl ZonesPerl test-vzic test-vzic.o
92+
-rm -rf vzic $(OBJECTS) *~ ChangesVzic RulesVzic ZonesVzic RulesPerl ZonesPerl test-vzic test-vzic.o tzdata
8793

8894
.PHONY: clean perl-dump test-parse
89-
90-

0 commit comments

Comments
 (0)