chiark / gitweb /
make: introduce --with-rootprefix=
[elogind.git] / test / rules-test.sh
1 #!/usr/bin/env sh
2 # Call the udev rule syntax checker on all rules that we ship
3 #
4 # (C) 2010 Canonical Ltd.
5 # Author: Martin Pitt <martin.pitt@ubuntu.com>
6
7 set -e
8
9 [ -n "$srcdir" ] || srcdir=`dirname $0`/..
10
11 # skip if we don't have python
12 type python >/dev/null 2>&1 || {
13     echo "$0: No python installed, skipping udev rule syntax check"
14     exit 0
15 }
16
17 $srcdir/test/rule-syntax-check.py `find $srcdir/rules -name '*.rules'`