Add temporary .sh file to build PDF doc

Can't use Makefile as this will break Debian package building.  Long-term
it would be good to find a Python based solution to this

Change-Id: I586c805345b7c72553cbd5a0ce71ee94c29d623b
This commit is contained in:
Andrew Hutchings 2012-11-19 12:25:30 +00:00
parent 981e165130
commit dd104b663a

6
build_pdf.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
python setup.py build_sphinx_latex
# Fix option double dashes in latex output
perl -i -pe 's/\\bfcode\{--(.*)\}/\\bfcode\{-\{\}-\1\}/g' build/sphinx/latex/*.tex
perl -i -pe 's/\\index\{(.*?)--(.*?)\}/\\index\{\1-\{\}-\2\}/g' build/sphinx/latex/*.tex
make -C build/sphinx/latex all-pdf