sogo/SOPE/NGCards/TimeZones/UPDATING
2014-11-07 10:36:11 -05:00

23 lines
804 B
Plaintext

To updated the timezone files:
1- get the vzic or tzurl tool from http://code.google.com/p/tzurl/source/checkout and compile it
(update the Makefile to use PRODUCT_ID = -//Inverse inc.//NONSGML Olson 2012j//EN)
2- get the zone files, for example:
mkdir /tmp/zones
cd /tmp/zones
wget http://www.iana.org/time-zones/repository/releases/tzdata2014i.tar.gz
tar -zxvf tzdata2014i.tar.gz
3- run the conversion tool
vzic --olson-dir /tmp/zones/ --output-dir SOGo/SOPE/NGCards/TimeZones/
cd SOGo/SOPE/NGCards/TimeZones/
rm -f zones.h zones.tab
4- if necessary, adjust the PRODID:
find . -name "*.ics" | xargs -ti sed -i s/'My Organization\/\/NONSGML My Product'/'Inverse inc.\/\/NONSGML SOGo'/ {}
find . -name "*.ics" | xargs -ti sed -i s/'\/myorganization.org\/20120508_1\/'// {}