1#!/bin/sh 2# Call the udev rule syntax checker on all rules that we ship 3# 4# (C) 2010 Canonical Ltd. 5# Author: Martin Pitt <martin.pitt@ubuntu.com> 6 7[ -n "$builddir" ] || builddir=`dirname $0`/.. 8 9# skip if we don't have python 10type python >/dev/null 2>&1 || { 11 echo "$0: No python installed, skipping udev rule syntax check" 12 exit 0 13} 14 15$builddir/test/rule-syntax-check.py `find $builddir/rules -name '*.rules'` 16