But fallback to optipng -o7 and then pngout.
This saves ~2M in final .zip size at a cost of ~5 min of build time on
my laptop.
Change-Id: Ic56f677bdc8250f4088f4dbfbfd555ceed5616c2
Signed-off-by: Evan McClain <aeroevan@gmail.com>
aapt's -0 option is for extensions only, not directories, and PinyinIME
needs .dat to be excluded. Nothing else in CM7 uses a .dat file, so
this shouldn't increase the .apk size more than is needed.
Also adding .dict, which isn't strictly required, but LatinIME wants it.
Nothing in CM7 but LatinIME uses .dict.
Change-Id: I7ce1b2cbc2b32c734978488aac2f4f6c43562cc1
The verbose output of opticharger can obscure warning messages about missing
tools so this patch reduces the noise.
The script leaves droppings in /tmp so clean this up on exit using a trap.
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>