Add optional checks for coding style (mainly whitespace at the moment).
[dbus-python-phuang.git] / tools / check-c-style.sh
blob177355e9f7a1ad03e7b1641795fadf2552da55ea
1 #!/bin/sh
2 fail=0
4 /bin/sh "${top_srcdir}"/tools/check-whitespace.sh "$@" || fail=$?
6 # at the moment we're not actually checking much C style here... to be added
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
17 exit $fail