Merge pull request #98 from deathbaba/fixes

Generic fixes
This commit is contained in:
Viktor Govako 2013-12-11 08:43:31 -08:00
commit 52554cb068

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