SHA256
1
0
forked from pool/icu
icu/sanitize_docs.sh

16 lines
320 B
Bash

#!/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