Subversion Repositories HelenOS-doc

Rev

Rev 104 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

#!/bin/bash

for f in `ls *.svg | sed 's/\.svg//g'`;
do
    if [ ! -f "$f.eps" ]; then
        echo "Converting $f.svg to $f.eps";
        inkscape --without-gui --export-eps=$f.eps $f.svg
    fi

    if [ ! -f "$f.pdf" ]; then
        echo "Converting $f.eps to $f.pdf";
        egrep -v "^%%Orientation:" $f.eps | epstopdf --filter --outfile $f.pdf
    fi
    
    if [ ! -f "$f.png" ]; then
        echo "Converting $f.svg to $f.png";
        inkscape -D -X -Y -W -H --without-gui --export-width=600 --export-png=$f.png $f.svg
    
    fi
done