Files
fsr_generator/prepare_presentation.sh
Tobias Wiese 6f5325678f cleanup of the presentation generation process
Clean up some bash scripts, that are used for the generation of the
presentation.

Some improvements:
* Only ssh to fsmi-login if not already running on a fsmi host.
* Use the defined postgresql service instead of manually specifing the host
* Fix bugs that could occure when having spaces in filenames
* Find the fslogo.png in the root when generating the presentation

Signed-off-by: Tobias Wiese <tobias@tobiaswiese.com>
2021-04-28 01:36:32 +02:00

19 lines
353 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