[file-roller] Use desktop-file-validate if present to avoid distribuiting desktop file with keywords errors



commit a64d9b40cf09d9433e9cc54c6d6fb22c378f433d
Author: Yanko Kaneti <yaneti declera com>
Date:   Tue Jul 9 17:54:47 2013 +0300

    Use desktop-file-validate if present to avoid distribuiting desktop file with keywords errors
    
    https://bugzilla.gnome.org/show_bug.cgi?id=703876

 configure.ac     |    5 +++++
 data/Makefile.am |    3 +++
 2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index fcf12c3..98c3907 100644
--- a/configure.ac
+++ b/configure.ac
@@ -315,6 +315,11 @@ AC_SUBST(DISABLE_DEPRECATED)
 
 dnl ******************************
 
+AC_CHECK_PROG(desktop_validate, desktop-file-validate, true)
+AM_CONDITIONAL([DESKTOP_VALIDATE], [test "$desktop_validate" = "true"])
+
+dnl ******************************
+
 AC_CONFIG_FILES([Makefile
                 file-roller.spec
                 data/Makefile
diff --git a/data/Makefile.am b/data/Makefile.am
index 04a1117..34f5761 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -62,6 +62,9 @@ CLEANFILES =                          \
         $(NULL)
 
 dist-hook:
+if DESKTOP_VALIDATE
+       desktop-file-validate $(desktop_DATA)
+endif
        cd $(distdir); rm -f $(CLEANFILES)
 
 -include $(top_srcdir)/git.mk


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