[dconf-editor] Use the appstream-util validate-relax test.



commit 8ae85f0184764930137f2da4d0cfea8aedc80a28
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Wed Sep 21 05:29:03 2016 +0200

    Use the appstream-util validate-relax test.

 editor/Makefile.am |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/editor/Makefile.am b/editor/Makefile.am
index 88b4b8d..3ef2952 100644
--- a/editor/Makefile.am
+++ b/editor/Makefile.am
@@ -68,11 +68,16 @@ ca.desrt.dconf-editor.service: Makefile
                     echo 'Exec=${bindir}/dconf-editor --gapplication-service') > $@.tmp && \
                     mv $@.tmp $@
 
-@APPSTREAM_XML_RULES@
 appstream_in_files = ca.desrt.dconf-editor.appdata.xml.in
 appstream_XML = $(appstream_in_files:.xml.in=.xml)
 @INTLTOOL_XML_RULE@
 
+%.appdata.valid: %.appdata.xml
+       $(AM_V_GEN) if test -f "$<"; then d=; else d="$(srcdir)/"; fi; \
+                   if test -n "$(APPSTREAM_UTIL)"; \
+                       then $(APPSTREAM_UTIL) --nonet validate-relax $${d}$<; fi
+check-am: $(appstream_XML:.appdata.xml=.appdata.valid)
+
 gsettings_SCHEMAS = ca.desrt.dconf-editor.gschema.xml
 @GSETTINGS_RULES@
 
@@ -97,7 +102,5 @@ update-icon-cache:
 
 man_MANS = dconf-editor.1
 
-DISTCHECK_CONFIGURE_FLAGS == --enable-appdata-check
-
 CLEANFILES = $(appstream_XML) $(desktop_DATA) $(dbusservice_DATA) resources.c
 EXTRA_DIST = $(appstream_in_files) $(gsettings_SCHEMAS) $(icons) $(resource_data) $(man_MANS)


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