Files
fsr_generator/prepare_presentation.sh
Tobias Wiese f9c04b7411 presentation: symlink current presentation in root
Add a symlink to the newly generated presentation in the root dir for
easy access.

Signed-off-by: Tobias Wiese <tobias@tobiaswiese.com>
2021-04-28 08:51:49 +02:00

21 lines
422 B
Bash
Executable File

#!/bin/sh
set -e
dest_file="$(realpath "$(dirname "$0")")/data/presentation_$(date +%Y-%m-%d).tex"
echo Reading old protocols
./read_db.sh
echo Getting E-Mail
./read_ubmails.py
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