2 # Call the udev rule syntax checker on all rules that we ship
4 # (C) 2010 Canonical Ltd.
5 # Author: Martin Pitt <martin.pitt@ubuntu.com>
9 [ -n "$srcdir" ] || srcdir=`dirname $0`/..
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"
17 $srcdir/test/rule-syntax-check.py `find $srcdir/rules -type f`