etherlab/images/genicons.sh
changeset 2165 02a2b5dee5e3
parent 2043 27d4cb689a79
equal deleted inserted replaced
2021:bcf346f558bd 2165:02a2b5dee5e3
       
     1 #!/bin/bash
       
     2 
       
     3 INKSCAPE=inkscape
       
     4 
       
     5 for i in `cat icons.svg |grep -o -e '%%[^%]*%%'|sed 's/%//g'` 
       
     6 do
       
     7  if [ $i.png -nt icons.svg ]; then
       
     8  	echo "Skip $i"
       
     9  else
       
    10 	rm  -f $i.png
       
    11 	echo "$INKSCAPE" icons.svg -z -e $i.png -i $i
       
    12 	"$INKSCAPE" icons.svg -z -e $i.png -i $i
       
    13  fi
       
    14 done
       
    15