diff options
Diffstat (limited to 'build')
-rwxr-xr-x | build | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -46,4 +46,22 @@ install: build "tzdata-$${t}.data/usr/share/zoneinfo/$${src}"; \ done; \ done + grep '^Link' src/backward | while read type dest src etc; do \ + t="$$(cd src && grep -l \ + "^Zone[ ][ ]*$${dest}[ ].*$$" \ + $(tables))"; \ + link="$${src}" up=''; \ + while [ "$${link#*/}" != "$${link}" ] && \ + [ "$${link%%/*}" = "$${dest%%/*}" ]; do \ + link="$${link#*/}"; \ + dest="$${dest#*/}"; \ + done; \ + while [ "$${link#*/}" != "$${link}" ]; do \ + link="$${link#*/}"; \ + up="../$${up}"; \ + done; \ + src="tzdata-$${t}.data/usr/share/zoneinfo/$${src}"; \ + mkdir -p "$${src%/*}"; \ + ln -sf "$${up}$${dest}" "$${src}"; \ + done ln -sf . tzdata-common.data/usr/share/zoneinfo/posix |