summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rwxr-xr-xbuild43
1 files changed, 43 insertions, 0 deletions
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