Ignore comments with leading whitespace as well as those without.
authorAlexander van Gessel (AI0867) <ai0867@gmail.com>
Tue, 2 Oct 2012 23:53:14 +0000 (01:53 +0200)
committerAlexander van Gessel (AI0867) <ai0867@gmail.com>
Wed, 3 Oct 2012 00:01:52 +0000 (02:01 +0200)
Reported-by: jan-ruzicka
Makefile

index 6e2f77900ad9a10ac98a95f02b45e6781306a68d..920a75e02ebf7ca1eeb67a60468e0e95d2336d3a 100644 (file)
--- 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