summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuild4
1 files changed, 4 insertions, 0 deletions
diff --git a/build b/build
index a5a34ce..cfa976f 100755
--- a/build
+++ b/build
@@ -25,10 +25,12 @@ build:
touch $@
install: build
+ # Install tzdata-common files.
mkdir -p tzdata-common.data/usr/share/zoneinfo
cp src/iso3166.tab src/zone.tab tzdata-common.data/usr/share/zoneinfo
cp -p tzdata-northamerica.data/usr/share/zoneinfo/America/New_York \
tzdata-common.data/usr/share/zoneinfo
+ # Install time zones.
for t in $(tables); do \
grep '^Link' src/$${t} | while read type dest src etc; do \
rm -f "tzdata-$${t}.data/usr/share/zoneinfo/$${src}"; \
@@ -46,6 +48,8 @@ install: build
ln -sf "$${up}$${dest}" "$${src}"; \
done; \
done
+ # Install links listed in the "backward" table into the relevant time
+ # zone data package.
grep '^Link' src/backward | while read type dest src etc; do \
t="$$(cd src && grep -l \
"^Zone[ ][ ]*$${dest}[ ].*$$" \