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>
19 lines
353 B
Bash
Executable File
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
|