mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-01-27 00:33:34 +00:00
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.
This commit is contained in:
parent
9252a329d2
commit
b15e320fb7
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user