mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-30 10:26:58 +01:00
6e27196aed
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.)
36 lines
643 B
Bash
Executable file
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
|