From 3d482c1674e0e383be097a2efc3f1bf46594f42c Mon Sep 17 00:00:00 2001 From: "Reece H. Dunn" Date: Thu, 5 Jan 2017 20:38:41 +0000 Subject: [PATCH] android: fix running mkicons.sh on modern systems --- android/mkicons.sh | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/android/mkicons.sh b/android/mkicons.sh index bff6de7f..f968e47b 100755 --- a/android/mkicons.sh +++ b/android/mkicons.sh @@ -1,13 +1,15 @@ #!/bin/bash -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 +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'` + ${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 +${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