gtk-doc-plugins.mak (-module): Error out when the html build step gives warnings...
authorThomas Vander Stichele <thomas@apestaart.org>
Sun, 29 Apr 2007 13:04:24 +0000 (13:04 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Sun, 29 Apr 2007 13:04:24 +0000 (13:04 +0000)
Original commit message from CVS:
* gtk-doc-plugins.mak (-module):
Error out when the html build step gives warnings, so they get
fixed properly.

ChangeLog
gtk-doc-plugins.mak

index 64b00db..074dcd5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-04-29  Thomas Vander Stichele  <thomas at apestaart dot org>
+
+       * gtk-doc-plugins.mak (-module):
+         Error out when the html build step gives warnings, so they get
+         fixed properly.
+
 2007-04-23  Stefan Kost  <ensonic@users.sf.net>
 
        * m4/gst-feature.m4:
index cb98eb7..e4fe5db 100644 (file)
@@ -212,7 +212,11 @@ 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)
+       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
        rm -f html/$(DOC_MAIN_SGML_FILE)
        rm -rf html/xml
        rm -f html/version.entities