[android] Use default icons instead of failing

This commit is contained in:
Alex Zolotarev 2013-11-14 20:50:49 +03:00 committed by Alexander Zolotarev
parent 905ab3422f
commit d3eb1329a0

View file

@ -12,9 +12,14 @@ cat countries_to_generate.txt | while read country; do
toCopy=(drawable-ldpi drawable-mdpi drawable-hdpi \
drawable-xhdpi drawable-xxhdpi)
COUNTRY_RES_DIR="../../android/icons/$country"
if [ ! -d "$COUNTRY_RES_DIR" ]; then
COUNTRY_RES_DIR="../../android/icons/default"
echo "ERROR: Icons are missing for $country - default icons are used"
fi
for resDir in ${toCopy[*]}
do
cp -f ../../android/icons/$country/$resDir/* ../../android/res/$resDir
cp -f $COUNTRY_RES_DIR/$resDir/* ../../android/res/$resDir
echo "Copied $resDir for $country"
done