summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-06-05 19:28:33 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-06-05 19:29:20 (EDT)
commit02041687f2e7d8c080792696f5e6b1fad96f8255 (patch)
tree2dfe241b7efcf05293dfcbd53fba2db2d820725b /build
parentbbcc2b04fe412fe207a060b3e43fff614c486fee (diff)
build: Don't install until install
Diffstat (limited to 'build')
-rwxr-xr-xbuild6
1 files changed, 2 insertions, 4 deletions
diff --git a/build b/build
index 1ac3b25..33e0b52 100755
--- a/build
+++ b/build
@@ -16,10 +16,6 @@ nop:
build:
oh-autobuild -- KSHELL=/bin/sh
- for t in $(tables); do \
- src/zic -d tzdata-$${t}.data/usr/share/zoneinfo \
- -L /dev/null src/$${t} || exit $?; \
- done
touch $@
install: build
@@ -41,6 +37,8 @@ install: build
ln -sf . tzdata.data/usr/share/zoneinfo/posix
# Install time zones.
for t in $(tables); do \
+ src/zic -d tzdata-$${t}.data/usr/share/zoneinfo \
+ -L /dev/null src/$${t} || exit $?; \
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 \