Blame tools/check-py-style.sh

Packit 130fc8
#!/bin/sh
Packit 130fc8
fail=0
Packit 130fc8
Packit 130fc8
/bin/sh "${top_srcdir}"/tools/check-whitespace.sh "$@" || fail=$?
Packit 130fc8
Packit 130fc8
# at the moment we're not actually checking much Python style here...
Packit 130fc8
# to be added
Packit 130fc8
Packit 130fc8
if test -n "$CHECK_FOR_LONG_LINES"
Packit 130fc8
then
Packit 130fc8
  if egrep -n '.{80,}' "$@"
Packit 130fc8
  then
Packit 130fc8
    echo "^^^ The above files contain long lines"
Packit 130fc8
    fail=1
Packit 130fc8
  fi
Packit 130fc8
fi
Packit 130fc8
Packit 130fc8
exit $fail