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/
|
2022-02-16 11:12:31 +01:00
|
|
|
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
|