From c2e990f07c61408b2bb34fa823bbc0c4e995f6f9 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Wed, 09 Oct 2013 16:30:52 -0400 Subject: tzdata-common: Rename to tzdata. --- (limited to 'build') diff --git a/build b/build index d1209cf..0fe2c04 100755 --- a/build +++ b/build @@ -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 -- cgit v0.9.1