diff options
author | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2007-04-27 02:45:30 +0000 |
---|---|---|
committer | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2007-04-27 02:45:30 +0000 |
commit | babee5fe38026e5b6210fa381aace3a19a89785f (patch) | |
tree | f9b6d82d7373c81c7420acdbb8c692bbff57fe2b /qt-recordmydesktop/m4/pychecker.mk | |
parent | de6c6f26c88d6f961f9e450edb337510d7c893f9 (diff) |
This commit was generated by cvs2svn to compensate for changes in r312,
which included commits to RCS files with non-trunk default branches.
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@313 f606c939-3180-4ac9-a4b8-4b8779d57d0a
Diffstat (limited to 'qt-recordmydesktop/m4/pychecker.mk')
-rw-r--r-- | qt-recordmydesktop/m4/pychecker.mk | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/qt-recordmydesktop/m4/pychecker.mk b/qt-recordmydesktop/m4/pychecker.mk new file mode 100644 index 0000000..1e1f72a --- /dev/null +++ b/qt-recordmydesktop/m4/pychecker.mk @@ -0,0 +1,43 @@ +# include this snippet for the pychecker stuff +# Makefile.am needs to define +# PYCHECKER_WHITELIST +# and +# PYCHECKER_BLACKLIST + +# we redirect stderr so we don't get messages like +# warning: couldn't find real module for class SSL.Error (module name: SSL) +# which can't be turned off in pychecker +pycheckersplit: + @echo running pychecker on each file ... + @for file in $(filter-out $(PYCHECKER_BLACKLIST),$(wildcard $(PYCHECKER_WHITELIST))); \ + do \ + PYTHONPATH=`pwd` \ + pychecker -Q -F misc/pycheckerrc \ + `ls $(top_srcdir)/misc/setup.py 2> /dev/null` \ + `ls $(top_srcdir)/misc/pycheckerhelp.py 2> /dev/null` \ + $$file \ + > /dev/null 2>&1; \ + if test $$? -ne 0; then \ + echo "Error on $$file"; \ + pychecker -Q -F misc/pycheckerrc \ + `ls $(top_srcdir)/misc/setup.py 2> /dev/null` \ + `ls $(top_srcdir)/misc/pycheckerhelp.py 2> /dev/null` \ + $$file; break; fi; \ + done + +pychecker: + @echo running pychecker ... + @PYTHONPATH=`pwd` \ + pychecker -Q -F misc/pycheckerrc \ + `ls $(top_srcdir)/misc/setup.py 2> /dev/null` \ + `ls $(top_srcdir)/misc/pycheckerhelp.py 2> /dev/null` \ + $(filter-out $(PYCHECKER_BLACKLIST),$(wildcard $(PYCHECKER_WHITELIST)))\ + 2> /dev/null || make pycheckerverbose + +pycheckerverbose: + @echo running pychecker ... + PYTHONPATH=`pwd` \ + pychecker -F misc/pycheckerrc \ + `ls $(top_srcdir)/misc/setup.py 2> /dev/null` \ + `ls $(top_srcdir)/misc/pycheckerhelp.py 2> /dev/null` \ + $(filter-out $(PYCHECKER_BLACKLIST),$(wildcard $(PYCHECKER_WHITELIST))) |