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

37 lines
875 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-04-28 14:27:08 +02:00
"inkscape")
2018-05-06 11:48:47 +02:00
for presi in latex/*;do
for file in $presi/*.svg;do
[ -e "$file" ] && make "${file%.svg}".pdf || true
done
done
2018-04-28 14:27:08 +02:00
;;
2018-05-06 11:48:47 +02:00
"latex")
make fonts
2018-04-12 18:38:04 +02:00
2018-05-06 11:48:47 +02:00
for presi in latex/*;do
[ -e "$presi/index.tex" ] && make "$presi/index.pdf" || true
done
;;
"libreoffice")
for presi in latex/* revealjs/*;do
[ -e "$presi/handout.odt" ] && make "$presi/handout.pdf" || true
done
;;
"revealjs")
make revealjs/node_modules
;;
"decktape")
2018-05-06 11:48:47 +02:00
for presi in revealjs/*;do
[ -e "$presi/index.html" ] && make "$presi/index.pdf" || true
done
;;
*)
echo "USAGE: $0 [MODE]"
echo "modes: inkscape latex libreoffice revealjs"
;;
2018-04-12 18:38:04 +02:00
esac