docs: do a gtkdoc-rebase --online before 'make upload'
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Sun, 28 Jun 2009 00:12:00 +0000 (01:12 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Sun, 28 Jun 2009 12:01:44 +0000 (13:01 +0100)
Fix cross-references to GLib by doing a gtkdoc-rebase --online
before rsyncing the html docs to our server.

upload-doc.mak

index 60731e5..a9e13c3 100644 (file)
@@ -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