cl: Initialize device_config
[piglit.git] / docs / build-html.sh
blobea02aa02b812adae6d008a46eceec36ad2baeb08
1 #!/bin/sh
2 # Shell script for Sphinx documentation
5 set -e
7 # You can set these variables from the command line.
8 SPHINXOPTS=
9 SPHINXBUILD=sphinx-build
10 PAPER=
11 BUILDDIR=_build
13 # Internal variables.
14 case "$PAPER" in
15 a4)
16 PAPEROPT="-D latex_paper_size=a4"
18 letter)
19 PAPEROPT="-D latex_paper_size=letter"
22 PAPEROPT=
24 esac
25 PAPEROPT_a4="-D latex_paper_size=a4"
26 PAPEROPT_letter="-D latex_paper_size=letter"
27 ALLSPHINXOPTS="-d ${BUILDDIR}/doctrees ${PAPEROPT} ${SPHINXOPTS} ."
29 ${SPHINXBUILD} -b html ${ALLSPHINXOPTS} ${BUILDDIR}/html
30 echo
31 echo "Build finished. The HTML pages are in ${BUILDDIR}/html."