appstream: add tools for checking
authorIgor Gnatenko <i.gnatenko.brain@gmail.com>
Thu, 12 Jun 2014 16:36:01 +0000 (20:36 +0400)
committerIgor Gnatenko <i.gnatenko.brain@gmail.com>
Thu, 12 Jun 2014 19:27:41 +0000 (23:27 +0400)
Reference: http://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=3210
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
tools/check-appstream.sh [new file with mode: 0755]

diff --git a/tools/check-appstream.sh b/tools/check-appstream.sh
new file mode 100755 (executable)
index 0000000..5cb76d8
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/bash
+exec 2>&1
+files=`find $(dirname $(readlink -f $0))/../ -regextype posix-extended -regex "^.*\.(metainfo|appdata).xml(.in)?"`
+appstream-util validate ${files}