Fixed schedule reply handling for missing organizer
[davical.git] / zonedb / update-tzdata.sh
blobad4f80f1aea64cc1a25d496bdb2b51da808c2067
1 #!/bin/sh
3 wget --continue 'ftp://ftp.iana.org/tz/tz*.tar.gz'
5 TZCODEFILE="`readlink tzcode-latest.tar.gz`"
6 TZDATAFILE="`readlink tzdata-latest.tar.gz`"
8 # if [ ! -f $TZCODEFILE ]; then
10 wget --continue -O $TZCODEFILE 'ftp://ftp.iana.org/tz/'$TZCODEFILE
11 rm -rf tzcode
12 mkdir -p tzcode && cd tzcode && tar -xzf ../$TZCODEFILE
14 # fi
16 # if [ ! -f $TZDATAFILE ]; then
18 wget --continue -O $TZDATAFILE 'ftp://ftp.iana.org/tz/'$TZDATAFILE
19 rm -rf tzdata
20 mkdir -p tzdata && cd tzdata && tar -xzf ../$TZDATAFILE
22 # fi
24 vzic --pure --olson-dir tzdata --output-dir vtimezones
25 echo "Olson `echo $TZDATAFILE | cut -f1 -d.`" >vtimezones/primary-source