summaryrefslogtreecommitdiff
path: root/tools/check-c-style.sh
blob: 177355e9f7a1ad03e7b1641795fadf2552da55ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
fail=0

/bin/sh "${top_srcdir}"/tools/check-whitespace.sh "$@" || fail=$?

# at the moment we're not actually checking much C style here... to be added

if test -n "$CHECK_FOR_LONG_LINES"
then
  if egrep -n '.{80,}' "$@"
  then
    echo "^^^ The above files contain long lines"
    fail=1
  fi
fi

exit $fail