mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-11-27 08:35:33 +00:00
18 lines
403 B
Bash
Executable File
18 lines
403 B
Bash
Executable File
#!/bin/sh
|
|
|
|
wget --continue 'ftp://elsie.nci.nih.gov/pub/tz*.tar.gz'
|
|
|
|
TZCODEFILE="`ls -t tzcode*.tar.gz|tail -n 1`"
|
|
TZDATAFILE="`ls -t tzdata*.tar.gz|tail -n 1`"
|
|
|
|
(
|
|
mkdir tzcode && cd tzcode && tar -xfz ../$TZCODEFILE
|
|
)
|
|
|
|
(
|
|
mkdir tzdata && cd tzdata && tar -xfz ../$TZDATAFILE
|
|
)
|
|
|
|
vzic --olson-dir tzdata --output-dir vtimezones
|
|
echo "Olson `echo $TZDATAFILE | cut -f1 -d.`" >vtimezones/primary-source
|