2
# Copyright 2013 Christian Dywan <christian@twotoasts.de>
4
# This script is free software; you can redistribute it and/or
5
# modify it under the terms of the GNU Lesser General Public
6
# License as published by the Free Software Foundation; either
7
# version 2.1 of the License, or (at your option) any later version.
8
echo Validating .desktop files
9
test -z $(which desktop-file-validate) && echo ...SKIPPED: not installed && return 0
10
test -z "$SRCDIR" && SRCDIR=$PWD
11
test -z "$BLDDIR" && BLDDIR=_build
12
cd "$SRCDIR/$BLDDIR/default/data"
14
for i in $(ls | GREP_OPTIONS= grep .desktop); do
15
for j in $(desktop-file-validate $i | grep -v 'unregistered value "Pantheon"' | tr ' ' '_'); do
20
test "$ERRORS" = 1 && echo ...FAILED && exit 1