mirror of
https://github.com/ceph/ceph
synced 2024-12-16 00:15:35 +00:00
1c696b6566
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
43 lines
1015 B
Bash
Executable File
43 lines
1015 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
cd "$(dirname "$0")"
|
|
cd ..
|
|
|
|
install -d -m0755 build-doc
|
|
|
|
if [ ! -e build-doc/doxygen/xml ]; then
|
|
doxygen
|
|
fi
|
|
|
|
dia --filter=png-libart --export=doc/overview.png.tmp doc/overview.dia
|
|
|
|
mv -- doc/overview.png.tmp doc/overview.png
|
|
|
|
cat src/osd/PG.h src/osd/PG.cc | doc/scripts/gen_state_diagram.py > doc/dev/peering_graph.generated.dot
|
|
|
|
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
|
|
|
|
# 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 ..
|
|
|
|
install -d -m0755 \
|
|
output/html \
|
|
output/man
|
|
PYTHONPATH=`pwd`/../src/pybind ./virtualenv/bin/sphinx-build -a -b dirhtml -d doctrees ../doc output/html
|
|
./virtualenv/bin/sphinx-build -a -b man -d doctrees ../doc output/man
|