lecture-notes/template/.ci/build_document.sh

13 lines
300 B
Bash
Executable file

set -e
echo "Building document"
make pdf
mkdir public
mv build/$mainfile.pdf public
mv build/$mainfile.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 "$course" > index.html
fi