#!/bin/sh -ex ver="51.2" name="icu4c-51_2-docs.zip" # Put docs in a separate directory 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