IonizationChamber/ContinuousIntegration/run_generate_docs.sh

29 wiersze
577 B
Bash
Czysty Zwykły widok Historia

2019-08-05 14:53:43 +00:00
#!/bin/bash
2020-10-24 11:42:03 +00:00
cd ../Documentation/Diagrams/
2019-08-05 14:53:43 +00:00
# generate .png from all .tex in current directory
for filename_with_extension in *.tex
do
echo "processing $filename_with_extension..."
# remove file exctension to made file handling easier
filename=${filename_with_extension%.*}
# convert .tex to .png
pdflatex $filename.tex
2019-08-09 15:12:34 +00:00
touch $filename-tmp.pdf
2019-08-05 14:53:43 +00:00
pdfcrop $filename.pdf $filename-tmp.pdf
pdftoppm -png -r 800 $filename-tmp.pdf $filename
2020-10-24 11:42:03 +00:00
# convert .tex to .png
pdf2svg $filename-tmp.pdf $filename.svg all
2019-08-05 14:53:43 +00:00
done
2019-08-09 15:12:34 +00:00
rm *.aux *.log *.pdf