Images/genicons.sh
author Laurent Bessard
Tue, 04 Sep 2012 11:31:21 +0200
changeset 755 1d77d700761f
parent 184 d3e6484ebe85
permissions -rw-r--r--
Fix bug when trying to launch Inkscape and not installed. No error message was displayed on Windows.
#!/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