[openstack-nova] only process the man/ rst files when building man pages
Pádraig Brady
pbrady at fedoraproject.org
Mon Mar 26 11:27:21 UTC 2012
commit f9d5d598e4a86c86a0ea1f7d29ef71c200b3a025
Author: Pádraig Brady <P at draigBrady.com>
Date: Mon Mar 26 11:24:43 2012 +0100
only process the man/ rst files when building man pages
Previously it redundantly ran through all the rst files,
which took a significant amount of time.
openstack-nova.spec | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/openstack-nova.spec b/openstack-nova.spec
index 8e43092..52279c1 100644
--- a/openstack-nova.spec
+++ b/openstack-nova.spec
@@ -191,15 +191,20 @@ export PYTHONPATH="$( pwd ):$PYTHONPATH"
pushd doc
# Manually auto-generate to work around sphinx-build segfault
./generate_autodoc_index.sh
-SPHINX_DEBUG=1 sphinx-build -b man source build/man
-mkdir -p %{buildroot}%{_mandir}/man1
-install -p -D -m 644 build/man/*.1 %{buildroot}%{_mandir}/man1/
%if 0%{?with_doc}
SPHINX_DEBUG=1 sphinx-build -b html source build/html
# Fix hidden-file-or-dir warnings
rm -fr build/html/.doctrees build/html/.buildinfo
%endif
+
+# Create dir link to avoid a sphinx-build exception
+mkdir -p build/man/.doctrees/
+ln -s . build/man/.doctrees/man
+SPHINX_DEBUG=1 sphinx-build -b man -c source source/man build/man
+mkdir -p %{buildroot}%{_mandir}/man1
+install -p -D -m 644 build/man/*.1 %{buildroot}%{_mandir}/man1/
+
popd
# Give stack, instance-usage-audit and clear_rabbit_queues a reasonable prefix
More information about the scm-commits
mailing list