From: Brian Warner Date: Wed, 9 Nov 2011 18:42:27 +0000 (-0800) Subject: Makefile count-lines: let it work on OS-X (-l not --lines), add XXX X-Git-Url: https://git.rkrishnan.org/pf/content/%22file:/frontends/configuration.txt?a=commitdiff_plain;h=5a1463d5875bb04e6c64a00b234f85968f33c590;p=tahoe-lafs%2Ftahoe-lafs.git 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 . --- diff --git a/Makefile b/Makefile index 0fffb5f4..d14634f0 100644 --- a/Makefile +++ b/Makefile @@ -148,11 +148,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