opencv/doc/latex2sphinx/buildall_pdf

18 lines
434 B
Plaintext
Raw Normal View History

2010-06-01 00:46:49 +08:00
#!/bin/bash
LANGUAGES="${LANGUAGES:=c cpp py}"
mkdir -p $LANGUAGES
tput clear
python latex.py ../online-opencv.tex $LANGUAGES || exit
for D in $LANGUAGES
do
echo $D
mkdir -p _build/latex/$D
cp conf.py $D
cp mymath.sty _build/latex/$D
TEXINPUTS=$PWD: sphinx-build -w $D/sphinx.errors -D "lang=$D" -b latex -d _build/doctrees/$D $D _build/latex/$D
(cd _build/latex/$D && rm *.aux *.toc *.log && pdflatex opencv.tex)
done