From: Brian Warner Date: Wed, 31 Jan 2007 01:10:37 +0000 (-0700) Subject: Makefile: count-lines: ignore build/* files, also add total number of .py files X-Git-Tag: tahoe_v0.1.0-0-UNSTABLE~287 X-Git-Url: https://git.rkrishnan.org/listings/FOOURL?a=commitdiff_plain;h=fb134d82f95d47a76dcbe834e6ce3ccdaf5f38ce;p=tahoe-lafs%2Ftahoe-lafs.git Makefile: count-lines: ignore build/* files, also add total number of .py files --- diff --git a/Makefile b/Makefile index 26509166..1f3bd406 100644 --- a/Makefile +++ b/Makefile @@ -60,10 +60,12 @@ pyflakes: pyflakes src/allmydata count-lines: + @echo -n "files: " + @find src -name '*.py' |grep -v /build/ |wc --lines @echo -n "lines: " - @cat `find src -name '*.py'` |wc --lines + @cat `find src -name '*.py' |grep -v /build/` |wc --lines @echo -n "TODO: " - @grep TODO `find src -name '*.py'` | wc --lines + @grep TODO `find src -name '*.py' |grep -v /build/` | wc --lines clean: rm -rf build