Commit eddd11c9 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller

docs: do a gtkdoc-rebase --online before 'make upload'

Fix cross-references to GLib by doing a gtkdoc-rebase --online
before rsyncing the html docs to our server.
parent 5845b632
......@@ -24,10 +24,22 @@ upload: $(FORMATS)
fi; \
export DIR=$(DOC_BASE)/gstreamer/$$DOCVERSION/$(DOC); \
ssh $(DOC_SERVER) mkdir -p $$DIR; \
if echo $(FORMATS) | grep html > /dev/null; then export SRC="$$SRC html"; fi; \
if echo $(FORMATS) | grep html > /dev/null; then \
echo "Preparing docs for upload (rebasing cross-references) ..." ; \
if test x$(builddir) != x$(srcdir); then \
echo "make upload can only be used if srcdir == builddir"; \
exit 1; \
fi; \
gtkdoc-rebase --online --html-dir=$(builddir)/html ; \
export SRC="$$SRC html"; \
fi; \
if echo $(FORMATS) | grep ps > /dev/null; then export SRC="$$SRC $(DOC).ps"; fi; \
if echo $(FORMATS) | grep pdf > /dev/null; then export SRC="$$SRC $(DOC).pdf"; fi; \
echo Uploading $$SRC to $(DOC_SERVER):$$DIR; \
rsync -rv -e ssh --delete $$SRC $(DOC_SERVER):$$DIR; \
ssh $(DOC_SERVER) chmod -R g+w $$DIR; \
if echo $(FORMATS) | grep html > /dev/null; then \
echo "Un-preparing docs for upload (rebasing cross-references) ..." ; \
gtkdoc-rebase --html-dir=$(builddir)/html ; \
fi; \
echo Done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment