etherlab/images/genicons.sh
author Edouard Tisserant
Mon, 25 Mar 2019 14:59:54 +0100
branchwx.NewID_abuse_fix
changeset 2554 45d4f9a84c60
parent 2043 27d4cb689a79
permissions -rwxr-xr-x
VariablePanel's menu do not waste Wx IDs anymore (directly binds wx objects rather than crating new ID wit wx.NewId)
#!/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