xwords/xwords4/android/scripts/mkimages.sh

37 lines
643 B
Bash
Raw Normal View History

#!/bin/bash
set -e -u
2017-01-18 16:15:08 +01:00
if [ ! -d img_src ]; then
echo "no img_src; please run from root of source tree"
exit 1
fi
CLEAN=""
2013-12-05 04:42:18 +01:00
usage() {
echo "usage: $0 [--clean]"
exit 1
}
while [ $# -ge 1 ]; do
case $1 in
--clean)
CLEAN=1
;;
*)
usage
;;
esac
shift
done
# There needs to be target in the makefile for each of these (giving
# the output .png size)
make -f $(dirname $0)/images.mk >/dev/null 2>&1
2017-09-03 22:20:26 +02:00
OTHER_IMAGES="app/src/main/res/drawable/green_chat__gen.png"
for IMAGE in $OTHER_IMAGES; do
make -f $(dirname $0)/images.mk $IMAGE >/dev/null 2>&1
done