optipng 231 Bytes
Newer Older
root's avatar
root committed
1 2 3 4 5 6 7 8
#!/bin/bash
if which optipng &>/dev/null ; then
	[ "$PKGS" == "" ] && PKGS=$name
	for package in ${PKGS[@]} ; do
		export INSTALLDIR=$BUILDDIR/$package/install
		find $INSTALLDIR -type f | grep "*.png" | xargs optipng -o7
	done
fi