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

14 lines
300 B
Bash
Raw Permalink Normal View History

2022-02-15 21:46:39 +01:00
set -e
echo "Building document"
make pdf
mkdir public
2022-02-15 23:46:02 +01:00
mv build/$mainfile.pdf public
mv build/$mainfile.log public
2022-02-15 21:46:39 +01:00
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