[recipes] Check our appdata for validity



commit dbb562c3dafcf36094cb2ab7d2528f29c9a2a2d0
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Feb 14 21:25:42 2017 -0500

    Check our appdata for validity
    
    appstream-util is a useful tool; we should use it to ensure
    that our appdata is valid.

 data/Makefile.am |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index b6ecaf6..6a5a9e3 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -226,6 +226,11 @@ appdata_in_files = appdata/org.gnome.Recipes.appdata.xml.in
 dist_appdata_DATA = $(appdata_in_files:.appdata.xml.in=.appdata.xml)
 
 %.appdata.xml: %.appdata.xml.in
-       $(AM_V_GEN) mkdir appdata; msgfmt --xml -d $(top_srcdir)/po --template $< -o $@
+       $(AM_V_GEN) mkdir -p appdata; msgfmt --xml -d $(top_srcdir)/po --template $< -o $@
 
 EXTRA_DIST += $(appdata_in_files)
+
+check: check-appstream
+
+check-appstream:
+       appstream-util validate-relax appdata/org.gnome.Recipes.appdata.xml


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