plugin-docs: add a fallback for the include of -details.xml
authorStefan Kost <ensonic@users.sf.net>
Thu, 23 Jul 2009 20:53:55 +0000 (23:53 +0300)
committerStefan Kost <ensonic@users.sf.net>
Thu, 23 Jul 2009 21:38:03 +0000 (00:38 +0300)
For wrapper plugins we cannot know the details.xml (besides that there will be
many). Regardless we don't want to fail if there are no details (gtk-doc-1.12
handles this already). Also remove that fancy warning -> ERROR mapping from
makefile, we don't do that for normal docs either.

gtk-doc-plugins.mak
mangle-tmpl.py

index 7ea125405ec8ad5ce5128ea6f5850f414950281c..83599ad8bbbf43df1c5f7c9766a0bde0a3801fa3 100644 (file)
@@ -236,11 +236,7 @@ html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files)
        @for f in $(content_files); do cp $(srcdir)/$$f html; done
        cp -pr xml html
        cp ../version.entities html
-       cd html && gtkdoc-mkhtml $(DOC_MODULE) $(DOC_MAIN_SGML_FILE) \
-           2>&1 | tee ../html-build.log
-       @if grep "warning:" html-build.log > /dev/null; then \
-               echo "ERROR"; grep "warning:" html-build.log; exit 1; fi
-       @rm html-build.log
+       cd html && gtkdoc-mkhtml $(DOC_MODULE) $(DOC_MAIN_SGML_FILE)
        mv html/index.sgml html/index.sgml.bak
        $(SED) "s/ href=\"$(DOC_MODULE)\// href=\"$(DOC_MODULE)-@GST_MAJORMINOR@\//g" html/index.sgml.bak >html/index.sgml
        rm -f html/index.sgml.bak
index dbd0566a0ffdd588b9a789fd64e872012e88a89a..e4095a2de6b4e00935e4c3063c0f01bdc299b15a 100644 (file)
@@ -148,7 +148,9 @@ def main():
 
         # put in an include if not yet there
         line = '<include xmlns="http://www.w3.org/2003/XInclude" href="' + \
-            'element-' + element + '-details.xml" />\n'
+            'element-' + element + '-details.xml">' + \
+            '<fallback xmlns="http://www.w3.org/2003/XInclude" />' + \
+            '</include>\n'
         section = tmpl.get_section("Long_Description")
         if not section[0]  == line:
             section.insert(0, line)