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
|
2011-09-01 01:20:53 +00:00
|
|
|
|
2011-08-19 23:43:21 +00:00
|
|
|
mv -- doc/overview.png.tmp doc/overview.png
|
|
|
|
|
2011-11-30 00:24:35 +00:00
|
|
|
cat src/osd/PG.h src/osd/PG.cc | doc/scripts/gen_state_diagram.py > doc/dev/peering_graph.generated.dot
|
|
|
|
|
2011-08-19 23:43:21 +00:00
|
|
|
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
|
2011-09-30 18:30:28 +00:00
|
|
|
PYTHONPATH=`pwd`/../src/pybind ./virtualenv/bin/sphinx-build -a -b dirhtml -d doctrees ../doc output/html
|
2011-08-19 23:43:21 +00:00
|
|
|
./virtualenv/bin/sphinx-build -a -b man -d doctrees ../doc output/man
|