1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-12 15:21:19 +03:00
systemd/test/rules-test.sh

18 lines
425 B
Bash
Raw Normal View History

2011-12-25 23:41:52 +04:00
#!/usr/bin/env sh
# Call the udev rule syntax checker on all rules that we ship
#
# (C) 2010 Canonical Ltd.
# Author: Martin Pitt <martin.pitt@ubuntu.com>
set -e
[ -n "$srcdir" ] || srcdir=`dirname $0`/..
# skip if we don't have python
type python >/dev/null 2>&1 || {
echo "$0: No python installed, skipping udev rule syntax check"
exit 0
}
2011-12-23 05:02:44 +04:00
$srcdir/test/rule-syntax-check.py `find $srcdir/rules -name '*.rules'`