author | etisserant |
Wed, 24 Dec 2008 00:02:12 +0100 | |
changeset 282 | 2221e99d2f8f |
parent 199 | aa5f43bafad4 |
child 533 | 25437efb7ae4 |
permissions | -rwxr-xr-x |
197
a50b5fa04c57
SVG/Inkscape based icon generation script + SVG drawing.
etisserant
parents:
diff
changeset
|
1 |
#!/bin/bash |
a50b5fa04c57
SVG/Inkscape based icon generation script + SVG drawing.
etisserant
parents:
diff
changeset
|
2 |
|
a50b5fa04c57
SVG/Inkscape based icon generation script + SVG drawing.
etisserant
parents:
diff
changeset
|
3 |
INKSCAPE=inkscape |
a50b5fa04c57
SVG/Inkscape based icon generation script + SVG drawing.
etisserant
parents:
diff
changeset
|
4 |
|
a50b5fa04c57
SVG/Inkscape based icon generation script + SVG drawing.
etisserant
parents:
diff
changeset
|
5 |
for i in `cat icons.svg |grep -o -e '%%[^%]*%%'|sed 's/%//g'` |
a50b5fa04c57
SVG/Inkscape based icon generation script + SVG drawing.
etisserant
parents:
diff
changeset
|
6 |
do |
199 | 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 |
|
197
a50b5fa04c57
SVG/Inkscape based icon generation script + SVG drawing.
etisserant
parents:
diff
changeset
|
14 |
done |
a50b5fa04c57
SVG/Inkscape based icon generation script + SVG drawing.
etisserant
parents:
diff
changeset
|
15 |
|
a50b5fa04c57
SVG/Inkscape based icon generation script + SVG drawing.
etisserant
parents:
diff
changeset
|
16 |
cp ico24.png brz.png |
a50b5fa04c57
SVG/Inkscape based icon generation script + SVG drawing.
etisserant
parents:
diff
changeset
|
17 |
# doesn't work... cannot set 8bpp alpha. use gimp instead |
a50b5fa04c57
SVG/Inkscape based icon generation script + SVG drawing.
etisserant
parents:
diff
changeset
|
18 |
#convert ico*.png brz.ico |
a50b5fa04c57
SVG/Inkscape based icon generation script + SVG drawing.
etisserant
parents:
diff
changeset
|
19 |
#rm -f ico*.png |