mirror of
https://gitlab.com/mathezirkel/content/matboj-regelwerk
synced 2024-11-09 23:51:46 +01:00
15 lines
315 B
Bash
15 lines
315 B
Bash
|
set -e
|
||
|
echo "Building document"
|
||
|
make pdf
|
||
|
mkdir public
|
||
|
mv build/Matboj_Regelwerk.pdf public
|
||
|
mv build/Matboj_Regelwerk.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
|
||
|
|