diff options
Diffstat (limited to 'build')
-rwxr-xr-x | build | 23 |
1 files changed, 8 insertions, 15 deletions
@@ -8,8 +8,7 @@ tables = \ europe \ northamerica \ southamerica \ - etcetera \ - factory + etcetera nop: @: @@ -32,19 +31,17 @@ install: build tzdata.data/usr/share/zoneinfo/Etc cp src/*.tab tzdata.data/usr/share/zoneinfo ln -sf Universal tzdata.data/usr/share/zoneinfo/posixrules + # Install Factory zone. + src/zic -d tzdata.data/usr/share/zoneinfo src/factory; \ mkdir -p tzdata.data/etc - ln -sf /usr/share/zoneinfo/Universal tzdata.data/etc/localtime + ln -sf /usr/share/zoneinfo/Factory tzdata.data/etc/localtime ln -sf . tzdata.data/usr/share/zoneinfo/posix # Install time zones. set -e; for t in $(tables); do \ src/zic -d tzdata-$${t}.data/usr/share/zoneinfo src/$${t}; \ grep '^L' src/$${t} | while read type dest src etc; do \ rm -f "tzdata-$${t}.data/usr/share/zoneinfo/$${src}"; \ - if [ x"$${dest}" = x'Etc/UTC' ]; then \ - p='tzdata'; \ - else \ - p="tzdata-$${t}"; \ - fi; \ + p="tzdata-$${t}"; \ link="$${src}" up=''; \ while [ x"$${link#*/}" != x"$${link}" ] && \ [ x"$${link%%/*}" = x"$${dest%%/*}" ]; do \ @@ -62,13 +59,9 @@ install: build # Install links listed in the "backward" table into the relevant time # zone data package. grep '^L' src/backward | while read type dest src etc; do \ - if [ x"$${dest}" = x'Etc/UTC' ]; then \ - p='tzdata'; \ - else \ - p="tzdata-$$(cd src && grep -l \ - "^Zone[ ][ ]*$${dest}[ ].*$$" \ - $(tables))"; \ - fi; \ + p="tzdata-$$(cd src && grep -l \ + "^Zone[ ][ ]*$${dest}[ ].*$$" \ + $(tables))"; \ link="$${src}" up=''; \ while [ x"$${link#*/}" != x"$${link}" ] && \ [ x"$${link%%/*}" = x"$${dest%%/*}" ]; do \ |