Files
espeak-ng/android/mkicons.sh
T

16 lines
580 B
Bash
Executable File

#!/bin/bash
RSVG=${RSVG:=rsvg-convert}
${RSVG} -w 24 -h 24 icons/launcher.svg > res/drawable-ldpi/icon.png
${RSVG} -w 32 -h 32 icons/launcher.svg > res/drawable-mdpi/icon.png
${RSVG} -w 48 -h 48 icons/launcher.svg > res/drawable-hdpi/icon.png
${RSVG} -w 64 -h 64 icons/launcher.svg > res/drawable-xhdpi/icon.png
ls icons/Flag_*.svg | while read flag ; do
${RSVG} -w 75 -h 50 $flag > `echo $flag | sed -e 's,.svg,.png,g'`
done
${RSVG} -w 1024 -h 500 icons/feature-graphic.svg > icons/feature-graphic.png
${RSVG} -w 180 -h 120 icons/promo-graphic.svg > icons/promo-graphic.png