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

24 lines
489 B
Bash
Executable file

#!/bin/sh
set -e
case "$1" in
"libreoffice")
for presi in revealjs/*/handout.odt; do
make "$(dirname $presi)/handout.pdf"
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"
done
;;
*)
echo "unknown mode"
;;
esac