chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build-sys: fix built with --disable-logind
[elogind.git]
/
test
/
rules-test.sh
diff --git
a/test/rules-test.sh
b/test/rules-test.sh
index 9d5a07c19ee9d42e5dbc5be7e0e9ebba480a3969..1e224ff8b59974ce562a7bb74a7f99b5c0be5871 100755
(executable)
--- a/
test/rules-test.sh
+++ b/
test/rules-test.sh
@@
-4,14
+4,12
@@
# (C) 2010 Canonical Ltd.
# Author: Martin Pitt <martin.pitt@ubuntu.com>
# (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 || {
[ -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
+
echo "$0: No python installed, skipping udev rule syntax check"
+
exit 0
}
}
-$srcdir/test/rule-syntax-check.py `find $srcdir/rules -
type f
`
+$srcdir/test/rule-syntax-check.py `find $srcdir/rules -
name '*.rules'
`