aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.blockdiagrc3
-rwxr-xr-xbin/tex2pdf9
2 files changed, 12 insertions, 0 deletions
diff --git a/.blockdiagrc b/.blockdiagrc
new file mode 100644
index 0000000..89fbb93
--- /dev/null
+++ b/.blockdiagrc
@@ -0,0 +1,3 @@
+[seqdiag]
+fontpath = /usr/share/fonts/TTF/DejaVuSans.ttf
+latex_image_format = "PDF"
diff --git a/bin/tex2pdf b/bin/tex2pdf
index 7a8dcf1..d892300 100755
--- a/bin/tex2pdf
+++ b/bin/tex2pdf
@@ -97,9 +97,18 @@ function cleanup()
*/*.{acn,acr,alg,aux,bbl,bcf,blg,dvi,glg,glo,gls,glsdefs,idx,ist,lof,log,lot,nav,out,run.xml,snm,toc,upa,upb,vrb,xdy}
}
+render_diags() {
+ if [ -d "${dirname}/diag/" ] && [ -x /usr/bin/seqdiag ] ; then
+ for _diag in "${dirname}/diag/"*.diag; do
+ seqdiag -T 'PDF' "${_diag}"
+ done
+ fi
+}
+
probe_extension $1
get_filename $1
get_dirname $1
+render_diags
echo "tex2pdf: Converting $filename$input_suffix to $filename$output_suffix."
probe_tools
create_pdf