Images/genicons.sh
author laurent
Wed, 08 Jun 2011 18:44:25 +0200
changeset 543 2f660878c2a7
parent 184 d3e6484ebe85
permissions -rw-r--r--
Adding support for coloring following elements:
- STRING constants
- Data type in typed literals
- Function and functionBlock parameter names
#!/bin/bash

INKSCAPE=/cygdrive/c/Program\ Files/Inkscape/inkscape.exe

for i in `cat icons.svg |grep -o -e '%%[^%]*%%'|sed 's/%//g'` 
do
 echo "$INKSCAPE" `cygpath -w \`pwd\`/icons.svg` -z -e `cygpath -w \`pwd\`/$i.png` -i $i
 rm  -f $i.png
 "$INKSCAPE" `cygpath -w \`pwd\`/icons.svg` -z -e `cygpath -w \`pwd\`/$i.png` -i $i
done