Skip to content

Instantly share code, notes, and snippets.

@juanplopes

juanplopes/tzdata.sh

Last active Dec 5, 2019
Embed
What would you like to do?
Update tzdata
# On Ubuntu: make sure you have lzip and gawk installed
tmp_dir=$(mktemp -d -t tzdata-XXXXXXXXXX)
cd $tmp_dir
wget https://cdn.azul.com/tools/ziupdater1.0.2.2-jse8+7-any_jvm.tar.gz
wget https://data.iana.org/time-zones/releases/tzdb-2019c.tar.lz
tar zfxv ziupdater*.tar.gz
tar lfxv tzdb-2019c.tar.lz
cd tzdb-2019c/
make tarballs
cd ../
sudo java -jar ziupdater*.jar -l file://$tmp_dir/tzdb-2019c/tzdata2019c-rearguard.tar.gz
@msaatkamp

This comment has been minimized.

Copy link

@msaatkamp msaatkamp commented Dec 4, 2019

Valeu Juan, eu tentei rodar aqui mas tive um problema com o make

awk -v DATAFORM=`expr main.zi : '\(.*\).zi'` -f ziguard.awk \ africa antarctica asia australasia europe northamerica southamerica etcetera systemv factory backward >main.zi.out malloc(): memory corruption Aborted (core dumped) Makefile:619: recipe for target 'main.zi' failed make: *** [main.zi] Error 134 Exception in thread "main" java.io.FileNotFoundException: /tmp/tzdata-5pIcvb4iJq/tzdb-2019c/tzdata2019c-rearguard.tar.gz (No such file or directory) at java.base/java.io.FileInputStream.open0(Native Method) at java.base/java.io.FileInputStream.open(FileInputStream.java:219) at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157) at org.ziupdater.main.UpdateHelper.unpackTzdataFiles(UpdateHelper.java:237) at org.ziupdater.main.UpdateHelper.updateTzdata(UpdateHelper.java:162) at org.ziupdater.main.Main.updateVersion(Main.java:123) at org.ziupdater.main.Main.main(Main.java:140)

@juanplopes

This comment has been minimized.

Copy link
Owner Author

@juanplopes juanplopes commented Dec 5, 2019

O make falhou. Qual OS você está usando?

@msaatkamp

This comment has been minimized.

Copy link

@msaatkamp msaatkamp commented Dec 5, 2019

To usando o ubuntu 18.04.3 LTS

@juanplopes

This comment has been minimized.

Copy link
Owner Author

@juanplopes juanplopes commented Dec 5, 2019

Dá um sudo apt install lzip, só por desencargo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.