diff options
author | P. 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) |
commit | 65750c795bf422d8aa680e6b4aaf213fa218ec14 (patch) | |
tree | 44a38be578a8343303f9ba36779e40a2b5677ecc | |
parent | 91cf47be32395ae3ae13614bf5cb10e120d7ecab (diff) |
tzdata-common: Provide Etc/* -> UTC links.
-rwxr-xr-x | build | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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}" ] && \ |