Ignore empty lines for LOC.
authorAlexander van Gessel (AI0867) <ai0867@gmail.com>
Wed, 3 Oct 2012 00:03:48 +0000 (02:03 +0200)
committerAlexander van Gessel (AI0867) <ai0867@gmail.com>
Wed, 3 Oct 2012 00:03:48 +0000 (02:03 +0200)
Makefile

index 920a75e02ebf7ca1eeb67a60468e0e95d2336d3a..62e26d7401b3435a7fd955e5c7694717766d69f2 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 -vE '(^ *#|^ *$$)' irkerd irkerhook.py | wc -l
 
 SOURCES = README COPYING NEWS BUGS install.txt security.txt hacking.txt \
        irkerd irkerhook.py Makefile irkerd.xml irkerhook.xml