Added LOC icons generation
[GPXSee.git] / icons / scripts / ico.sh
blob13883904465d13f6c62c274364a9713d65e2ef02
1 #!/bin/bash
3 while read e; do
4 IFS=":"; set $e
6 EXT=`echo $1 | tr /a-z/ /A-Z/`
7 sed -e "s/\$EXTENSION/$EXT/" -e "s/\$COLOR/$2/" icon-template.svg > $1.svg
8 convert -density 400 $1.svg -define icon:auto-resize $1.ico
9 rm $1.svg
10 done < extensions