Revision 06a6f2cc
b/Makefile.am | ||
---|---|---|
612 | 612 |
exit 1; \ |
613 | 613 |
fi |
614 | 614 |
endif |
615 |
## Sphinx provides little control over what content should be included. Some |
|
616 |
## mechanisms exist, but they all have drawbacks or actual issues. Since we |
|
617 |
## build two different versions of the documentation--once without man pages and |
|
618 |
## once, if enabled, with them--some control is necessary. xmpp-wrapper provides |
|
619 |
## us with this, but requires running in a temporary directory. It moves the |
|
620 |
## correct files into place depending on environment variables. |
|
615 | 621 |
dir=$(dir $@) && \ |
616 | 622 |
@mkdir_p@ $$dir && \ |
617 |
PYTHONPATH=. ENABLE_MANPAGES=$(ENABLE_MANPAGES) \ |
|
618 |
$(RUN_IN_TEMPDIR) bash autotools/sphinx-wrapper $(SPHINX) -q -W -b html \
|
|
623 |
PYTHONPATH=. ENABLE_MANPAGES=$(ENABLE_MANPAGES) COPY_DOC=1 \
|
|
624 |
$(RUN_IN_TEMPDIR) autotools/sphinx-wrapper $(SPHINX) -q -W -b html \ |
|
619 | 625 |
-d . \ |
620 | 626 |
-D version="$(VERSION_MAJOR).$(VERSION_MINOR)" \ |
621 | 627 |
-D release="$(PACKAGE_VERSION)" \ |
b/autotools/run-in-tempdir | ||
---|---|---|
9 | 9 |
trap "rm -rf $tmpdir" EXIT |
10 | 10 |
|
11 | 11 |
# fully copy items |
12 |
cp -r doc autotools daemons scripts lib tools qa $tmpdir |
|
13 |
|
|
14 |
#mkdir $tmpdir/doc |
|
15 |
#ln -s $PWD/doc/examples $tmpdir/doc |
|
12 |
cp -r autotools daemons scripts lib tools qa $tmpdir |
|
13 |
|
|
14 |
if [[ -z "$COPY_DOC" ]]; then |
|
15 |
mkdir $tmpdir/doc |
|
16 |
ln -s $PWD/doc/examples $tmpdir/doc |
|
17 |
else |
|
18 |
# Building documentation requires all files |
|
19 |
cp -r doc $tmpdir |
|
20 |
fi |
|
16 | 21 |
|
17 | 22 |
mkdir $tmpdir/test/ |
18 | 23 |
cp -r test/py $tmpdir/test/py |
Also available in: Unified diff