diff options
author | P. J. McDermott <pjm@nac.net> | 2013-10-06 01:41:23 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2013-10-06 01:41:23 (EDT) |
commit | 039cdfc2bc0d38e9a4de5803df86bc4f583ed8f7 (patch) | |
tree | 48b68e4c8082097ee03a76931f3db0ab33843152 /build | |
parent | 5567f28912bf38cb2dd15c86f8480396e5298c27 (diff) |
build: Compile and install timezones.
Diffstat (limited to 'build')
-rwxr-xr-x | build | 43 |
1 files changed, 43 insertions, 0 deletions
@@ -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 |