From a2a96ab058d55da185200e26b8839b3774f22dfc Mon Sep 17 00:00:00 2001 From: Daira Hopwood <daira@jacaranda.org> Date: Thu, 5 Sep 2013 19:08:23 +0100 Subject: [PATCH] Wed Nov 9 18:42:27 GMT 2011 Brian Warner <warner@lothar.com> * Makefile count-lines: let it work on OS-X (-l not --lines), add XXX OS-X's simple-minded /usr/bin/wc doesn't understand --lines, but everyone understands -l . --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 1134e47d..b07d5ca4 100644 --- a/Makefile +++ b/Makefile @@ -143,11 +143,13 @@ check-umids: count-lines: @echo -n "files: " - @find src -name '*.py' |grep -v /build/ |wc --lines + @find src -name '*.py' |grep -v /build/ |wc -l @echo -n "lines: " - @cat `find src -name '*.py' |grep -v /build/` |wc --lines + @cat `find src -name '*.py' |grep -v /build/` |wc -l @echo -n "TODO: " - @grep TODO `find src -name '*.py' |grep -v /build/` | wc --lines + @grep TODO `find src -name '*.py' |grep -v /build/` | wc -l + @echo -n "XXX: " + @grep XXX `find src -name '*.py' |grep -v /build/` | wc -l check-memory: .built rm -rf _test_memory -- 2.45.2