diff options
Diffstat (limited to 'build')
-rwxr-xr-x | build | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -28,6 +28,21 @@ build: install: build cp src/iso3166.tab src/zone.tab dest/usr/share/zoneinfo + (cd src && grep '^Link' $(tables)) | while read type dest src etc; do \ + rm -f "dest/usr/share/zoneinfo/$${src}"; \ + link="$${src}" up=''; \ + while [ "$${link#*/}" != "$${link}" ] && \ + [ "$${link%%/*}" = "$${dest%%/*}" ]; do \ + link="$${link#*/}"; \ + dest="$${dest#*/}"; \ + done; \ + while [ "$${link#*/}" != "$${link}" ]; do \ + link="$${link#*/}"; \ + up="../$${up}"; \ + done; \ + ln -sf "$${up}$${dest}" \ + "dest/usr/share/zoneinfo/$${src}"; \ + done for t in $(tables); do \ exec 3>../tzdata-$${t}.pkg/files; \ grep '^Zone' src/$${t} | while read type zone etc; do \ |