Debian Codegraph @

android/app/jni/res/docpdf/make-doc-pdf.sh

raw
1 #!/bin/bash
2
3 echo "compiling Furnace doc (PDF)..."
4
5 if [ ! -e .venv ]; then
6 python3 -m virtualenv .venv || exit 1
7 fi
8
9 source .venv/bin/activate
10
11 if [ ! -e .venv/req_installed ]; then
12 pip install -r requirements.txt || exit 1
13 touch .venv/req_installed
14 fi
15
16 python3 make_paper.py > manual.html
17
18 weasyprint -O all -dv manual.html manual.pdf