aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pass2msmtp3
-rwxr-xr-xbin/tex2pdf13
2 files changed, 13 insertions, 3 deletions
diff --git a/bin/pass2msmtp b/bin/pass2msmtp
deleted file mode 100755
index d383951..0000000
--- a/bin/pass2msmtp
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/usr/bin/env bash
-
-pass mail/$1
diff --git a/bin/tex2pdf b/bin/tex2pdf
index d892300..d11c830 100755
--- a/bin/tex2pdf
+++ b/bin/tex2pdf
@@ -98,6 +98,7 @@ function cleanup()
}
render_diags() {
+ echo "Rendering diagrams to pdfs."
if [ -d "${dirname}/diag/" ] && [ -x /usr/bin/seqdiag ] ; then
for _diag in "${dirname}/diag/"*.diag; do
seqdiag -T 'PDF' "${_diag}"
@@ -105,10 +106,22 @@ render_diags() {
fi
}
+render_svgs() {
+ echo "Rendering SVGs to pdfs."
+ for dir in "${dirname}/images" "${dirname}/../images"; do
+ if [ -d "${dir}" ]; then
+ for svg in "${dir}/"*; do
+ inkscape -D -z -A "${svg%\.svg}".pdf "${svg}"
+ done
+ fi
+ done
+}
+
probe_extension $1
get_filename $1
get_dirname $1
render_diags
+render_svgs
echo "tex2pdf: Converting $filename$input_suffix to $filename$output_suffix."
probe_tools
create_pdf