[jhbuild] build: Add ‘check’ and ‘check -modulesets’ targets to the build system



commit c26798c79427369174357333501d16f80a78738d
Author: Philip Withnall <philip tecnocode co uk>
Date:   Wed Mar 20 16:43:37 2013 +0000

    build: Add ‘check’ and ‘check-modulesets’ targets to the build system
    
    This allows the validity of the modulesets’ XML to be checked without
    building and installing jhbuild. This is useful for git pre-receive hooks
    to prevent typos breaking the modulesets.
    
    Closes: https://bugzilla.gnome.org/show_bug.cgi?id=696184

 Makefile.am |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 66b5836..6d2fae5 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -45,3 +45,15 @@ install_check_SOURCES = install-check.c
 
 install-exec-local:
        $(srcdir)/scripts/debian-python2-postinstall-hook.sh $(DESTDIR)$(bindir)
+
+# Check the modulesets for validity.
+# This is a lower-level check than `jhbuild checkmodulesets` (which analyses the
+# module graph), and doesn't require jhbuild to be built and installed.
+#
+# This will fail if xmllint isn't installed.
+check-modulesets:
+       xmllint --noout --dtdvalid modulesets/moduleset.dtd $(MODULESETS)
+.PHONY: check-modulesets
+
+check: check-modulesets
+.PHONY: check


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]