etherlab/images/genicons.sh
author Edouard Tisserant
Tue, 21 May 2013 16:03:40 +0900
changeset 2150 08514552944f
parent 2043 27d4cb689a79
permissions -rwxr-xr-x
Moved ratio scaling back to MCL. Rewrote CiA402 C part in a way it can be read and understood by some humans.
#!/bin/bash

INKSCAPE=inkscape

for i in `cat icons.svg |grep -o -e '%%[^%]*%%'|sed 's/%//g'` 
do
 if [ $i.png -nt icons.svg ]; then
 	echo "Skip $i"
 else
	rm  -f $i.png
	echo "$INKSCAPE" icons.svg -z -e $i.png -i $i
	"$INKSCAPE" icons.svg -z -e $i.png -i $i
 fi
done