diff options
Diffstat (limited to 'build')
-rwxr-xr-x | build | 34 |
1 files changed, 17 insertions, 17 deletions
@@ -25,24 +25,24 @@ build: touch $@ install: build - # Install tzdata-common files. - mkdir -p tzdata-common.data/usr/share/zoneinfo/Etc + # Install tzdata files. + mkdir -p tzdata.data/usr/share/zoneinfo/Etc mv 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 - ln -sf Universal tzdata-common.data/usr/share/zoneinfo/posixrules - mkdir -p tzdata-common.data/etc - ln -sf /usr/share/zoneinfo/Universal tzdata-common.data/etc/localtime - ln -sf . tzdata-common.data/usr/share/zoneinfo/posix + tzdata.data/usr/share/zoneinfo/Etc + cp src/iso3166.tab src/zone.tab tzdata.data/usr/share/zoneinfo + ln -sf Universal tzdata.data/usr/share/zoneinfo/posixrules + mkdir -p tzdata.data/etc + ln -sf /usr/share/zoneinfo/Universal tzdata.data/etc/localtime + ln -sf . tzdata.data/usr/share/zoneinfo/posix # Install time zones. - for tt in $(tables); do \ - grep '^Link' src/$${tt} | while read type dest src etc; do \ + for t in $(tables); do \ + grep '^Link' src/$${t} | while read type dest src etc; do \ if [ x"$${dest}" = x'Etc/UTC' ]; then \ - t='common'; \ + p='tzdata'; \ else \ - t="$${tt}"; \ + p="tzdata-$${t}"; \ fi; \ - rm -f "tzdata-$${t}.data/usr/share/zoneinfo/$${src}"; \ + rm -f "$${p}.data/usr/share/zoneinfo/$${src}"; \ link="$${src}" up=''; \ while [ "$${link#*/}" != "$${link}" ] && \ [ "$${link%%/*}" = "$${dest%%/*}" ]; do \ @@ -53,7 +53,7 @@ install: build link="$${link#*/}"; \ up="../$${up}"; \ done; \ - src="tzdata-$${t}.data/usr/share/zoneinfo/$${src}"; \ + src="$${p}.data/usr/share/zoneinfo/$${src}"; \ ln -sf "$${up}$${dest}" "$${src}"; \ done; \ done @@ -61,9 +61,9 @@ install: build # zone data package. grep '^Link' src/backward | while read type dest src etc; do \ if [ x"$${dest}" = x'Etc/UTC' ]; then \ - t='common'; \ + p='tzdata'; \ else \ - t="$$(cd src && grep -l \ + p="tzdata-$$(cd src && grep -l \ "^Zone[ ][ ]*$${dest}[ ].*$$" \ $(tables))"; \ fi; \ @@ -77,7 +77,7 @@ install: build link="$${link#*/}"; \ up="../$${up}"; \ done; \ - src="tzdata-$${t}.data/usr/share/zoneinfo/$${src}"; \ + src="$${p}.data/usr/share/zoneinfo/$${src}"; \ mkdir -p "$${src%/*}"; \ ln -sf "$${up}$${dest}" "$${src}"; \ done |