summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-10-09 16:11:37 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-10-09 16:11:37 (EDT)
commit65750c795bf422d8aa680e6b4aaf213fa218ec14 (patch)
tree44a38be578a8343303f9ba36779e40a2b5677ecc /build
parent91cf47be32395ae3ae13614bf5cb10e120d7ecab (diff)
tzdata-common: Provide Etc/* -> UTC links.
Diffstat (limited to 'build')
-rwxr-xr-xbuild9
1 files changed, 7 insertions, 2 deletions
diff --git a/build b/build
index ce0b71b..d1209cf 100755
--- a/build
+++ b/build
@@ -35,8 +35,13 @@ install: build
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 \
- grep '^Link' src/$${t} | while read type dest src etc; do \
+ for tt in $(tables); do \
+ grep '^Link' src/$${tt} | while read type dest src etc; do \
+ if [ x"$${dest}" = x'Etc/UTC' ]; then \
+ t='common'; \
+ else \
+ t="$${tt}"; \
+ fi; \
rm -f "tzdata-$${t}.data/usr/share/zoneinfo/$${src}"; \
link="$${src}" up=''; \
while [ "$${link#*/}" != "$${link}" ] && \