musiktheorietheorie/.ci/build_document.sh
2022-03-22 09:11:20 +01:00

13 lines
311 B
Bash
Executable file

set -e
echo "Building document"
make pdf
mkdir public
mv build/musiktheorie.pdf public
mv build/musiktheorie.log public
cd public/
if ! command -v tree &> /dev/null
then
echo "No tree utility found, skipping making tree"
else
tree -H '.' -I "index.html" -D --charset utf-8 -T "musiktheorie" > index.html
fi