summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-10-09 16:03:56 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-10-09 16:03:56 (EDT)
commit9ad72193d157a5222251342a6ae6991a3f55d278 (patch)
tree19097e6585a97df7b71d322654167d379dc26bc6 /build
parent04396ea7af9277f4b00cf9c90766d92805160b98 (diff)
tzdata-common: Provide Etc/UTC and make default.
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 \