mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-03 21:27:00 +07:00
802d021d2e
At several points in the forked code, top_srcdir and top_builddir are mixed up. It is not clear if this is an upstream bug or if this is a result of the initial restructuring of the build system. This commit addresses this issue for tests triggered during make distcheck. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
16 lines
425 B
Bash
Executable File
16 lines
425 B
Bash
Executable File
#!/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>
|
|
|
|
[ -n "$builddir" ] || builddir=`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
|
|
}
|
|
|
|
$builddir/test/rule-syntax-check.py `find $builddir/rules -name '*.rules'`
|