summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-06-06 10:34:36 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-06-06 10:34:36 (EDT)
commitb07ae3a0d922f0d43b2245017d67e8b70be1da90 (patch)
tree1fc23c3ef5a36f8eab6891a7a1dea746c644d75a /build
parentde909eaef8acffb2a34daf817791bab82d249241 (diff)
build: Set p before inner loop
Diffstat (limited to 'build')
-rwxr-xr-xbuild4
1 files changed, 2 insertions, 2 deletions
diff --git a/build b/build
index 6058b66..f632b1a 100755
--- a/build
+++ b/build
@@ -37,10 +37,10 @@ install: build
ln -sf /usr/share/zoneinfo/Factory tzdata.data/etc/localtime
# Install time zones.
set -e; for t in $(tables); do \
- src/zic -d tzdata-$${t}.data/usr/share/zoneinfo src/$${t}; \
+ p="tzdata-$${t}"; \
+ src/zic -d "$${p}.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}"; \
- p="tzdata-$${t}"; \
link="$${src}" up=''; \
while [ x"$${link#*/}" != x"$${link}" ] && \
[ x"$${link%%/*}" = x"$${dest%%/*}" ]; do \