diff options
-rw-r--r-- | .msmtprc | 22 | ||||
-rwxr-xr-x | bin/pass2msmtp | 3 | ||||
-rwxr-xr-x | bin/tex2pdf | 13 |
3 files changed, 15 insertions, 23 deletions
@@ -11,15 +11,7 @@ account sleepmap.de host mail.sleepmap.de from dave@sleepmap.de user dave@sleepmap.de -passwordeval "pass2msmtp dave@sleepmap.de" -tls_trust_file /etc/ssl/cert.pem - -# david.runge@campus.tu-berlin.de -account tu-berlin.de -host mail.tu-berlin.de -from david.runge@campus.tu-berlin.de -user davezerave -passwordeval "pass2msmtp davezerave@mail.tu-berlin.de" +passwordeval "pass mail/dave@sleepmap.de" tls_trust_file /etc/ssl/cert.pem # dave@c-base.org @@ -27,18 +19,8 @@ account c-base.org host c-mail.c-base.org from dave@c-base.org user dave -passwordeval "pass2msmtp dave@c-base.org" +passwordeval "pass mail/dave@c-base.org" tls_trust_file ~/.certs/c-base.crt -# lac@linuxaudio.org -account linuxaudio.org -host linuxaudio.org -from lac@linuxaudio.org -user lac -port 25 -passwordeval "pass2msmtp lac@linuxaudio.org" -tls_fingerprint 1A:22:57:04:93:C4:4A:EC:B0:18:F8:3C:63:50:2B:C6:9A:5C:76:3A - - # Set a default account account default : sleepmap.de 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 |