2013-10-19 07:36:45 +02:00
|
|
|
#!/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"
|
2013-10-19 07:36:45 +02:00
|
|
|
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
|
2013-10-19 07:36:45 +02:00
|
|
|
|
|
|
|
# There needs to be target in the makefile for each of these (giving
|
|
|
|
# the output .png size)
|
2020-03-18 04:25:33 +01:00
|
|
|
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
|