Rev 103 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
88 | bondari | 1 | #!/bin/bash |
2 | |||
3 | for f in `ls *.svg | sed 's/\.svg//g'`; |
||
4 | do |
||
92 | bondari | 5 | if [ ! -f "$f.eps" ]; then |
6 | echo "Converting $f.svg to $f.eps"; |
||
7 | inkscape --without-gui --export-eps=$f.eps $f.svg |
||
8 | fi |
||
9 | |||
95 | bondari | 10 | if [ ! -f "$f.pdf" ]; then |
92 | bondari | 11 | echo "Converting $f.eps to $f.pdf"; |
12 | egrep -v "^%%Orientation:" $f.eps | epstopdf --filter --outfile $f.pdf |
||
13 | fi |
||
103 | bondari | 14 | |
15 | if [ ! -f "$f.png" ]; then |
||
16 | echo "Converting $f.svg to $f.png"; |
||
17 | inkscape --without-gui --export-width=600 --export-png=$f.png $f.svg |
||
18 | |||
19 | fi |
||
88 | bondari | 20 | done |