From a24ef049122d489a2bcb415ebc98203f6f2f292f Mon Sep 17 00:00:00 2001 From: Yannik Enss Date: Wed, 23 Jun 2021 16:07:26 +0200 Subject: [PATCH] add separate script for compiling presentation --- compile_presentation.sh | 13 +++++++++++++ prepare_presentation.sh | 10 +--------- 2 files changed, 14 insertions(+), 9 deletions(-) create mode 100755 compile_presentation.sh diff --git a/compile_presentation.sh b/compile_presentation.sh new file mode 100755 index 0000000..3893fbb --- /dev/null +++ b/compile_presentation.sh @@ -0,0 +1,13 @@ +#!/bin/sh +set -e +dest_file="$(realpath "$(dirname "$0")")/data/presentation_$(date +%Y-%m-%d).tex" + +echo Compiling +mkdir -p data/presentation +cd data/presentation/ + +for _ in $(seq 3); do + pdflatex "$dest_file" +done + +ln -srf "presentation_$(date +%Y-%m-%d).pdf" ../../presentation.pdf diff --git a/prepare_presentation.sh b/prepare_presentation.sh index ae57543..0dfdfbc 100755 --- a/prepare_presentation.sh +++ b/prepare_presentation.sh @@ -9,12 +9,4 @@ echo Getting E-Mail echo Generating ./generate.py --presentation >"$dest_file" -echo Compiling -mkdir -p data/presentation -cd data/presentation/ - -for _ in $(seq 3); do - pdflatex "$dest_file" -done - -ln -srf "presentation_$(date +%Y-%m-%d).pdf" ../../presentation.pdf +./compile_presentation.sh