[gnome-terminal] build: Validate appdata file
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-terminal] build: Validate appdata file
- Date: Mon, 24 Feb 2014 22:35:07 +0000 (UTC)
commit 7ca5feee1a7c72aaad66d07c63ded6b31e363e14
Author: Christian Persch <chpe gnome org>
Date: Mon Feb 24 23:29:36 2014 +0100
build: Validate appdata file
Add make target to validate appdata file. Not added to make check yet
since appdata-validate throws an invalid error on our appdata file.
Makefile.am | 6 ++++++
configure.ac | 6 ++++++
2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index b145b0f..4859606 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -29,6 +29,12 @@ appdata_in_files = gnome-terminal.appdata.xml.in
nodist_appdata_DATA = $(appdata_in_files:.xml.in=.xml)
@INTLTOOL_XML_RULE@
+APPDATA_VALIDATE_FLAGS = --nonet
+appdata-validate: $(nodist_appdata_DATA)
+ for f in $^; do \
+ $(APPDATA_VALIDATE) $(APPDATA_VALIDATE_FLAGS) $$f; \
+ done
+
check-local: desktop-file-validate
EXTRA_DIST = \
diff --git a/configure.ac b/configure.ac
index 386c814..90ebc77 100644
--- a/configure.ac
+++ b/configure.ac
@@ -167,6 +167,12 @@ if test -z "$DESKTOP_FILE_VALIDATE"; then
AC_MSG_ERROR([desktop-file-validate not found])
fi
+AC_ARG_VAR([APPDATA_VALIDATE],[the appdata-validate programme])
+AC_PATH_PROG([APPDATA_VALIDATE],[appdata-validate],[])
+if test -z "$APPDATA_VALIDATE"; then
+ AC_MSG_ERROR([appdata-validate not found])
+fi
+
# ***************************
# GNOME Shell search provider
# ***************************
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]