summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2010-09-07 11:37:33 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2010-09-07 11:37:33 +0100
commitaa0d1d0399c8095314394d869ceab21a371e6fbb (patch)
tree0735693e3c609471f3c0824e55f91682cb3fa551
parentc2e10bf92174d6fc3b28d4eddc53498649f49108 (diff)
gtk-doc-plugins.mak: add check-outdated-docs target and run it after 'make update'
Make sure we don't keep outdated plugin introspection info around. This target is a bit more aggressive than than the existing 'check-inspected-versions' one, but also much more useful, since it actually tries to check if there's still a reference to plugins in the code.
-rw-r--r--gtk-doc-plugins.mak26
1 files changed, 25 insertions, 1 deletions
diff --git a/gtk-doc-plugins.mak b/gtk-doc-plugins.mak
index faa73df..7490eda 100644
--- a/gtk-doc-plugins.mak
+++ b/gtk-doc-plugins.mak
@@ -15,6 +15,7 @@ help:
# update the stuff maintained by doc maintainers
update:
$(MAKE) scanobj-update
+ $(MAKE) check-outdated-docs
# We set GPATH here; this gives us semantics for GNU make
# which are more like other make's VPATH, when it comes to
@@ -311,6 +312,29 @@ check-inspected-versions:
done ; \
exit $$fail
+check-outdated-docs:
+ $(AM_V_GEN)echo Checking for outdated plugin inspect data ...; \
+ fail=0 ; \
+ if [ -d $(top_srcdir)/.git/ ]; then \
+ files=`find $(srcdir)/inspect/ -name '*xml'`; \
+ for f in $$files; do \
+ ver=`grep '<version>$(PACKAGE_VERSION)</version>' $$f`; \
+ if test "x$$ver" = "x"; then \
+ plugin=`echo $$f | sed -e 's/^.*plugin-//' -e 's/.xml//'`; \
+ # echo "Checking $$plugin $$f"; \
+ pushd "$(top_srcdir)" >/dev/null; \
+ pinit=`git grep -A3 GST_PLUGIN_DEFINE -- ext/ gst/ sys/ | grep "\"$$plugin\""`; \
+ popd >/dev/null; \
+ # echo "[$$pinit]"; \
+ if test "x$$pinit" = "x"; then \
+ printf " **** outdated docs for plugin %-15s: %s\n" $$plugin $$f; \
+ fail=1; \
+ fi; \
+ fi; \
+ done; \
+ fi ; \
+ exit $$fail
+
#
# Require gtk-doc when making dist
#
@@ -334,5 +358,5 @@ dist-hook: dist-check-gtkdoc dist-hook-local
cd $(distdir) && rm -f $(DISTCLEANFILES)
-gtkdoc-rebase --online --relative --html-dir=$(distdir)/html
-.PHONY : dist-hook-local docs
+.PHONY : dist-hook-local docs check-outdated-docs