diff options
author | Sage Weil <sage@newdream.net> | 2012-03-12 16:46:31 -0700 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2012-03-12 16:46:31 -0700 |
commit | dfe50bcbece0d5cec20a48f3c072f87c03b813d2 (patch) | |
tree | 22d35ec5c57080732e4e590c719e96777b8ef2be /admin | |
parent | 6869c5766b1c8b1efbf6b95f0b44ce37687c8010 (diff) | |
download | ceph-dfe50bcbece0d5cec20a48f3c072f87c03b813d2.tar.gz |
build-doc: use alternate virtualenv dir, if specified
The docs gitbuilder will use this to avoid rebuilding the virtualenv on
every build.
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'admin')
-rwxr-xr-x | admin/build-doc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/admin/build-doc b/admin/build-doc index 98aa626bbed..81854640edf 100755 --- a/admin/build-doc +++ b/admin/build-doc @@ -39,13 +39,15 @@ cat src/osd/PG.h src/osd/PG.cc | doc/scripts/gen_state_diagram.py > doc/dev/peer cd build-doc -if [ ! -e virtualenv ]; then - virtualenv --no-site-packages virtualenv +[ -z "$vdir" ] && vdir="./virtualenv" + +if [ ! -e $vdir ]; then + virtualenv --no-site-packages $vdir fi -./virtualenv/bin/pip install --quiet -r ../admin/doc-requirements.txt +$vdir/bin/pip install --quiet -r ../admin/doc-requirements.txt 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 +PYTHONPATH=`pwd`/../src/pybind $vdir/bin/sphinx-build -a -b dirhtml -d doctrees ../doc output/html +$vdir/bin/sphinx-build -a -b man -d doctrees ../doc output/man |