xwords/xwords4/android/scripts/mkimages.sh
Eric House 6e27196aed specify svg files to be used as sources
To move away from generating .png files, I need to be able to specify
which of the .svg files is used as a source at build time. (The rest
will be converted manually into .xml files that are checked in.)
2020-03-17 20:25:33 -07:00

36 lines
643 B
Bash
Executable file

#!/bin/bash
set -e -u
if [ ! -d img_src ]; then
echo "no img_src; please run from root of source tree"
exit 1
fi
CLEAN=""
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
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