From b15e320fb7ac8821f7e7b70d0f55ed6b9579779e Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Sun, 24 Jan 2021 23:22:57 +1300 Subject: [PATCH] Fix up update-tzdata.sh so it'll run On my Debian Sid system, the readlink commands return the empty string. Given we use these as output files and the files to fetch, I figure that using hardcoded names is better. --- zonedb/update-tzdata.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/zonedb/update-tzdata.sh b/zonedb/update-tzdata.sh index ad4f80f1..008e5ea0 100755 --- a/zonedb/update-tzdata.sh +++ b/zonedb/update-tzdata.sh @@ -1,9 +1,9 @@ #!/bin/sh -wget --continue 'ftp://ftp.iana.org/tz/tz*.tar.gz' +set -e -TZCODEFILE="`readlink tzcode-latest.tar.gz`" -TZDATAFILE="`readlink tzdata-latest.tar.gz`" +TZCODEFILE="tzcode-latest.tar.gz" +TZDATAFILE="tzdata-latest.tar.gz" # if [ ! -f $TZCODEFILE ]; then ( @@ -21,5 +21,6 @@ TZDATAFILE="`readlink tzdata-latest.tar.gz`" ) # fi +# From: https://github.com/libical/vzic vzic --pure --olson-dir tzdata --output-dir vtimezones echo "Olson `echo $TZDATAFILE | cut -f1 -d.`" >vtimezones/primary-source