2011-08-19 23:43:21 +00:00
|
|
|
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
cd ..
|
|
|
|
|
2011-08-29 22:43:41 +00:00
|
|
|
install -d -m0755 build-doc
|
|
|
|
|
|
|
|
if [ ! -e build-doc/doxygen/xml ]; then
|
|
|
|
doxygen
|
|
|
|
fi
|
|
|
|
|
2011-08-19 23:43:21 +00:00
|
|
|
dia --filter=png-libart --export=doc/overview.png.tmp doc/overview.dia
|
|
|
|
mv -- doc/overview.png.tmp doc/overview.png
|
|
|
|
|
|
|
|
cd build-doc
|
|
|
|
|
|
|
|
if [ ! -e virtualenv ]; then
|
|
|
|
virtualenv --no-site-packages virtualenv
|
|
|
|
fi
|
|
|
|
if [ ! -x virtualenv/bin/sphinx-build ]; then
|
|
|
|
./virtualenv/bin/pip install sphinx
|
|
|
|
fi
|
|
|
|
|
2011-08-29 22:43:41 +00:00
|
|
|
# ugly kludge until breathe is distutils-friendly
|
|
|
|
install -d breathe
|
|
|
|
cd breathe
|
|
|
|
if [ ! -e .git ]; then
|
|
|
|
git init
|
|
|
|
fi
|
|
|
|
if [ -z "$(git rev-parse --default HEAD)" ]; then
|
|
|
|
git pull --ff-only https://github.com/michaeljones/breathe.git master
|
|
|
|
fi
|
|
|
|
cd ..
|
|
|
|
|
2011-08-19 23:43:21 +00:00
|
|
|
install -d -m0755 \
|
|
|
|
output/html \
|
|
|
|
output/man
|
|
|
|
./virtualenv/bin/sphinx-build -a -b dirhtml -d doctrees ../doc output/html
|
|
|
|
./virtualenv/bin/sphinx-build -a -b man -d doctrees ../doc output/man
|