This repository has been archived on 2022-03-27. You can view files and clone it, but cannot push or open issues/pull-requests.
presis/compile.sh

24 lines
489 B
Bash
Raw Normal View History

2018-04-12 18:38:04 +02:00
#!/bin/sh
2018-04-12 22:34:37 +02:00
set -e
2018-04-12 18:38:04 +02:00
case "$1" in
2018-05-06 11:48:47 +02:00
"libreoffice")
for presi in revealjs/*/handout.odt; do
make "$(dirname $presi)/handout.pdf"
2018-05-06 11:48:47 +02:00
done
;;
"revealjs")
for presi in revealjs/*/index.md; do
make "$(dirname $presi)/index.html"
done
;;
"decktape")
for presi in revealjs/*/index.html; do
make "$(dirname $presi)/index.pdf"
2018-05-06 11:48:47 +02:00
done
;;
*)
echo "unknown mode"
2018-05-06 11:48:47 +02:00
;;
2018-04-12 18:38:04 +02:00
esac