#!/bin/sh -ex ver="51.1" name="icu4c-51_1-docs.zip" wget -c "http://download.icu-project.org/files/icu4c/$ver/$name" rm -Rf html mkdir html pushd html unzip "../$name" popd tar --use=xz -cvf "${name%.zip}.tar.xz" html rm "$name" rm -Rf html