Zwergenraetsel/.ci/build_document.sh

14 lines
317 B
Bash
Raw Normal View History

2022-08-19 16:21:37 +02:00
set -e
echo "Building document"
make pdf
mkdir public
mv build/2022_Zwergenraetsel.pdf public
mv build/2022_Zwergenraetsel.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 "NONE" > index.html
fi