File sanitize_docs.sh of Package icu.7191

#!/bin/sh -ex

ver="52.1"
name="icu4c-52_1-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"
if [ -x "$(which optipng)" ]; then optipng *.png; fi
popd
tar --use=xz -cvf "${name%.zip}.tar.xz" html
rm -Rf html