File: rules-test.sh

package info (click to toggle)
udev 164-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 4,336 kB
  • ctags: 1,738
  • sloc: ansic: 18,516; sh: 11,378; perl: 1,725; xml: 1,286; makefile: 692; python: 34
file content (17 lines) | stat: -rwxr-xr-x 409 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/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
}

$srcdir/test/rule-syntax-check.py `find $srcdir/rules -type f`