19 lines
576 B
Bash
19 lines
576 B
Bash
#!/bin/bash
|
|
|
|
# Thanks to t184256
|
|
|
|
|
|
for SVG in svgs/*.svg; do
|
|
N=$(basename $SVG .svg)
|
|
inkscape -f $SVG -w 48 -h 48 -e \
|
|
theme/src/main/assets/icons/res/test/drawable-mdpi/$N.png
|
|
inkscape -f $SVG -w 72 -h 72 -e \
|
|
theme/src/main/assets/icons/res/test/drawable-hdpi/$N.png
|
|
inkscape -f $SVG -w 96 -h 96 -e \
|
|
theme/src/main/assets/icons/res/test/drawable-xhdpi/$N.png
|
|
inkscape -f $SVG -w 144 -h 144 -e \
|
|
theme/src/main/assets/icons/res/test/drawable-xxhdpi/$N.png
|
|
inkscape -f $SVG -w 192 -h 192 -e \
|
|
theme/src/main/assets/icons/res/test/drawable-xxxhdpi/$N.png
|
|
done
|