[tali] Validate appdata and desktop file at make check



commit 301fdfaaee53198bb162fd85fe8c105bf3a21fad
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sun Oct 6 10:28:35 2013 -0500

    Validate appdata and desktop file at make check

 configure.ac     |    3 +++
 data/Makefile.am |    4 ++++
 2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 6b611f5..cc92af1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -66,6 +66,9 @@ PKG_CHECK_MODULES(TALI, [
   librsvg-2.0 >= $RSVG_REQUIRED
 ])
 
+AC_PATH_PROG(APPDATA_VALIDATE, appdata-validate)
+AC_PATH_PROG(DESKTOP_FILE_VALIDATE, desktop-file-validate)
+
 dnl ###########################################################################
 dnl Internationalization
 dnl ###########################################################################
diff --git a/data/Makefile.am b/data/Makefile.am
index a3d733e..696f0ba 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -41,4 +41,8 @@ EXTRA_DIST = \
 CLEANFILES = $(games_DATA) $(gsettings_SCHEMAS)
 DISTCLEANFILES = $(games_DATA) $(gsettings_SCHEMAS)
 
+check-local: $(appdata_DATA) $(desktop_DATA)
+       $(APPDATA_VALIDATE) $(appdata_DATA)
+       $(DESKTOP_FILE_VALIDATE) $(desktop_DATA)
+
 -include $(top_srcdir)/git.mk


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