Add tool to count LOC
This commit is contained in:
parent
44e8c0663d
commit
253ed034f0
24
tools/loc
Executable file
24
tools/loc
Executable file
@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
DOC=`find doc -type f -exec cat {} \; | wc -l`
|
||||
TESTS=`find kayobe/tests -type f -exec cat {} \; | wc -l`
|
||||
CLI=`find kayobe -type f -exec cat {} \; | wc -l`
|
||||
ANSIBLE=`find ansible -type f -exec cat {} \; | wc -l`
|
||||
|
||||
ETC=`find etc -type f -exec cat {} \; | wc -l`
|
||||
TOOLS=`find tools -type f -exec cat {} \; | wc -l`
|
||||
|
||||
CORE=$(($CLI+$ANSIBLE+$TESTS+$DOC))
|
||||
SUPP=$(($ETC+$TOOLS))
|
||||
TOTAL=$(($CORE+$SUPP))
|
||||
|
||||
|
||||
echo "CLI $CLI"
|
||||
echo "Ansible $ANSIBLE"
|
||||
echo "Doc $DOC"
|
||||
echo "Etc $ETC"
|
||||
echo "Tests $TESTS"
|
||||
echo ""
|
||||
echo "Core Code $CORE"
|
||||
echo "Support Code $SUPP"
|
||||
echo "Total Code $TOTAL"
|
Loading…
Reference in New Issue
Block a user