From 039cdfc2bc0d38e9a4de5803df86bc4f583ed8f7 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 06 Oct 2013 01:41:23 -0400 Subject: build: Compile and install timezones. --- (limited to 'build') diff --git a/build b/build index 2a40656..05c7a2d 100755 --- a/build +++ b/build @@ -2,5 +2,48 @@ include ../source.mk +tables = \ + africa \ + antarctica \ + asia \ + australasia \ + europe \ + northamerica \ + southamerica \ + pacificnew \ + etcetera \ + backward \ + factory + nop: @: + +build: + for t in $(tables); do \ + /usr/sbin/zic -d dest/usr/share/zoneinfo \ + -L /dev/null -y yearistype.sh \ + src/$${t} || exit $?; \ + done + /usr/sbin/zic -d dest/usr/share/zoneinfo -p America/New_York + touch $@ + +install: build + for t in $(tables); do \ + mkdir -p tzdata-$${t}.data/usr/share/zoneinfo; \ + cp -p dest/usr/share/zoneinfo/posixrules \ + tzdata-$${t}.data/usr/share/zoneinfo/posixrules; \ + exec 3>../tzdata-$${t}.pkg/files; \ + grep '^Zone' src/$${t} | while read type zone etc; do \ + printf '/usr/share/zoneinfo/%s\n' "$${zone}" >&3; \ + done; \ + grep '^Link' src/$${t} | while read type link zone etc; do \ + printf '/usr/share/zoneinfo/%s\n' "$${zone}" >&3; \ + done; \ + exec 3>&-; \ + done + rm -f dest/usr/share/zoneinfo/posixrules + oh-fixperms + oh-installfiles + for t in $(tables); do \ + rm -f ../tzdata-$${t}.pkg/files; \ + done -- cgit v0.9.1