equal
deleted
inserted
replaced
1 #!/bin/bash |
1 #!/bin/sh |
2 |
2 |
3 INKSCAPE=inkscape |
3 INKSCAPE=inkscape |
4 |
4 |
5 for i in `cat icons.svg |grep -o -e '%%[^%]*%%'|sed 's/%//g'` |
5 for fname in `ls *.svg`; do |
6 do |
6 for i in `cat $fname |grep -o -e '%%[^%]*%%'|sed 's/%//g'` |
7 if [ $i.png -nt icons.svg ]; then |
7 do |
8 echo "Skip $i" |
8 if [ $i.png -nt $fname ]; then |
9 else |
9 echo "Skip $i" |
10 rm -f $i.png |
10 else |
11 echo "$INKSCAPE" icons.svg -z -e $i.png -i $i |
11 rm -f $i.png |
12 "$INKSCAPE" icons.svg -z -e $i.png -i $i |
12 echo "$INKSCAPE" $fname -z -e $i.png -i $i |
13 fi |
13 "$INKSCAPE" $fname -z -e $i.png -i $i |
|
14 fi |
|
15 done |
14 done |
16 done |
15 |
17 |
16 cp ico24.png brz.png |
18 cp ico024.png brz.png |
17 convert ico*.png brz.ico |
19 convert -compress none ico*.png brz.ico |
18 rm -f ico*.png |
20 rm -f ico*.png |
|
21 |
|
22 |
|
23 convert -compress none poeico*.png poe.ico |
|
24 rm -f poeico*.png |
|
25 |