mirror of
https://github.com/simonmichael/hledger.git
synced 2024-12-26 20:02:27 +03:00
tools: new sloc, cloc targets
This commit is contained in:
parent
8feca2fa84
commit
3f3e9fcc06
18
Makefile
18
Makefile
@ -887,11 +887,27 @@ showreleaseauthors:
|
||||
@darcs changes --from-tag $(FROMTAG) |grep '^\w' |cut -c 31- |sort |uniq
|
||||
@echo
|
||||
|
||||
showloc sloccount:
|
||||
showloc:
|
||||
@echo Current lines of code including tests:
|
||||
@sloccount `ls $(SOURCEFILES)` | grep haskell:
|
||||
@echo
|
||||
|
||||
sloc:
|
||||
@sloccount hledger-lib hledger hledger-web
|
||||
|
||||
cloc:
|
||||
@echo
|
||||
@echo "Lines of code as of `date`:"
|
||||
@echo
|
||||
@echo "hledger-lib, hledger"
|
||||
@cloc -q hledger-lib hledger 2>&1 | grep -v 'defined('
|
||||
@echo
|
||||
@echo "hledger-web"
|
||||
@cloc -q hledger-web 2>&1 | grep -v 'defined('
|
||||
@echo
|
||||
@echo "hledger-lib, hledger, hledger-web"
|
||||
@cloc -q hledger-lib hledger hledger-web 2>&1 | grep -v 'defined('
|
||||
|
||||
showtestcount:
|
||||
@echo "Unit tests:"
|
||||
@hledger test 2>&1 | cut -d' ' -f2
|
||||
|
Loading…
Reference in New Issue
Block a user