tiny-xo2/doc/img/makepdf.sh

16 lines
264 B
Bash
Raw Normal View History

2017-11-10 22:26:46 +01:00
#!/bin/bash
for file in ./*.dia; do
p=${file%.dia}
p=${p##*/}
outfile="$p.svg"
dia --export=$outfile $file
done
for file in ./*.svg; do
p=${file%.svg}
p=${p##*/}
outfile="$p.pdf"
inkscape -D -z --file="$file" --export-pdf="$outfile" #--export-latex
done