You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

process_wipsvg.sh 611B

1234567891011121314151617181920
  1. #!/bin/bash
  2. # Thanks to t184256
  3. # Requires Inkscape and Imagemagic
  4. for SVG in svgs/wip/*.svg; do
  5. N=$(basename $SVG .svg)
  6. inkscape -f $SVG -w 48 -h 48 -e \
  7. theme/src/main/assets/icons/res/drawable-mdpi/$N.png
  8. inkscape -f $SVG -w 72 -h 72 -e \
  9. theme/src/main/assets/icons/res/drawable-hdpi/$N.png
  10. inkscape -f $SVG -w 96 -h 96 -e \
  11. theme/src/main/assets/icons/res/drawable-xhdpi/$N.png
  12. inkscape -f $SVG -w 144 -h 144 -e \
  13. theme/src/main/assets/icons/res/drawable-xxhdpi/$N.png
  14. inkscape -f $SVG -w 192 -h 192 -e \
  15. theme/src/main/assets/icons/res/drawable-xxxhdpi/$N.png
  16. mv $SVG svgs/depot/
  17. done