We don't need to test for the PostgreSQL non-PDO drivers now.
[davical.git] / zonedb / update-tzdata.sh
blob03f4eed0b547071fd1c3bcc2b158e21008377824
1 #!/bin/sh
3 wget --continue 'ftp://elsie.nci.nih.gov/pub/tz*.tar.gz'
5 TZCODEFILE="`ls -t tzcode*.tar.gz|tail -n 1`"
6 TZDATAFILE="`ls -t tzdata*.tar.gz|tail -n 1`"
9 mkdir tzcode && cd tzcode && tar -xfz ../$TZCODEFILE
13 mkdir tzdata && cd tzdata && tar -xfz ../$TZDATAFILE
16 vzic --pure --olson-dir tzdata --output-dir vtimezones
17 echo "Olson `echo $TZDATAFILE | cut -f1 -d.`" >vtimezones/primary-source