diff options
author | P. J. McDermott <pjm@nac.net> | 2013-10-09 16:30:52 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2013-10-09 16:30:52 (EDT) |
commit | c2e990f07c61408b2bb34fa823bbc0c4e995f6f9 (patch) | |
tree | b88dd17e6ebb9ddb496eb87b54faac4747d3e72b /build | |
parent | 65750c795bf422d8aa680e6b4aaf213fa218ec14 (diff) |
tzdata-common: Rename to tzdata.
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 |