b69062
#!/bin/bash
b69062
b69062
set -e
b69062
b69062
tmp=$(mktemp -d)
b69062
b69062
trap cleanup EXIT
b69062
cleanup() {
b69062
    set +e
b69062
    [ -z "$tmp" -o ! -d "$tmp" ] || rm -rf "$tmp"
b69062
}
b69062
b69062
unset CDPATH
b69062
pwd=$(pwd)
b69062
ver=1.8pre
b69062
b69062
cd "$tmp"
b69062
unzip -qq "$pwd"/batik-src-$ver.zip
b69062
rm -rf `find -name *.jar`
b69062
zip  -9 -o -r -q "$pwd"/batik-repack-$ver.zip batik-$ver
b69062
touch -r "$pwd"/batik-src-$ver.zip "$pwd"/batik-repack-$ver.zip
b69062
cd - >/dev/null