Add a symlink to the newly generated presentation in the root dir for easy access. Signed-off-by: Tobias Wiese <tobias@tobiaswiese.com>
21 lines
422 B
Bash
Executable File
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
|