Initial import package dbus-python: D-Bus Python Bindings
[external/dbus-python.git] / tools / check-c-style.sh
1 #!/bin/sh
2 fail=0
3
4 /bin/sh "${top_srcdir}"/tools/check-whitespace.sh "$@" || fail=$?
5
6 # at the moment we're not actually checking much C style here... to be added
7
8 if test -n "$CHECK_FOR_LONG_LINES"
9 then
10   if egrep -n '.{80,}' "$@"
11   then
12     echo "^^^ The above files contain long lines"
13     fail=1
14   fi
15 fi
16
17 exit $fail