w23-logic-2/.ci/build_document.sh

14 lines
295 B
Bash
Raw Normal View History

2023-10-16 16:24:38 +02:00
set -e
echo "Building document"
make pdf
mkdir public
mv build/logic2.pdf public
mv build/logic2.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 "Logic II" > index.html
fi