From: Alexander van Gessel (AI0867) Date: Tue, 2 Oct 2012 23:53:14 +0000 (+0200) Subject: Ignore comments with leading whitespace as well as those without. X-Git-Tag: 1.6~23^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=761d6ad2d53613c0cae5f0dae779f263fab7ae7d;p=irker.git Ignore comments with leading whitespace as well as those without. Reported-by: jan-ruzicka --- diff --git a/Makefile b/Makefile index 6e2f779..920a75e 100644 --- a/Makefile +++ b/Makefile @@ -42,7 +42,7 @@ pylint: @pylint --output-format=parseable $(PYLINTOPTS) irkerhook.py loc: - grep -v "^#" irkerd irkerhook.py | wc -l + grep -v '^ *#' irkerd irkerhook.py | wc -l SOURCES = README COPYING NEWS BUGS install.txt security.txt hacking.txt \ irkerd irkerhook.py Makefile irkerd.xml irkerhook.xml