summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rwxr-xr-xbuild19
1 files changed, 12 insertions, 7 deletions
diff --git a/build b/build
index 2ecb1a1..5553d93 100755
--- a/build
+++ b/build
@@ -26,12 +26,13 @@ build:
install: build
# Install tzdata-common files.
- mkdir -p tzdata-common.data/usr/share/zoneinfo
+ mkdir -p tzdata-common.data/usr/share/zoneinfo/Etc
+ cp -p tzdata-etcetera.data/usr/share/zoneinfo/Etc/UTC \
+ tzdata-common.data/usr/share/zoneinfo/Etc
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/posixrules
+ ln -sf Universal tzdata-common.data/usr/share/zoneinfo/posixrules
mkdir -p tzdata-common.data/etc
- ln -sf /usr/share/zoneinfo/posixrules tzdata-common.data/etc/localtime
+ ln -sf /usr/share/zoneinfo/Universal tzdata-common.data/etc/localtime
ln -sf . tzdata-common.data/usr/share/zoneinfo/posix
# Install time zones.
for t in $(tables); do \
@@ -54,9 +55,13 @@ install: build
# 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}[ ].*$$" \
- $(tables))"; \
+ if [ x"$${dest}" = x'Etc/UTC' ]; then \
+ t='common'; \
+ else \
+ t="$$(cd src && grep -l \
+ "^Zone[ ][ ]*$${dest}[ ].*$$" \
+ $(tables))"; \
+ fi; \
link="$${src}" up=''; \
while [ "$${link#*/}" != "$${link}" ] && \
[ "$${link%%/*}" = "$${dest%%/*}" ]; do \