aboutsummaryrefslogtreecommitdiff
path: root/loc
diff options
context:
space:
mode:
authorSteven Dake <stdake@cisco.com>2015-10-07 23:02:29 -0700
committerSteven Dake <stdake@cisco.com>2015-10-07 23:02:59 -0700
commitd040e34352f89bac7050651af7cb7ad99bdf0299 (patch)
treef86748f3d5af90d6c4ec64a05b48c189d9f9880c /loc
parent9d7177574bf585e201c662422bb24da5c90eb13a (diff)
downloadkolla-d040e34352f89bac7050651af7cb7ad99bdf0299.tar.gz
kolla-d040e34352f89bac7050651af7cb7ad99bdf0299.zip
Add a LOC counter
This implementation isn't very sophisticated but it works. TrivialFix Change-Id: I8df29be200078764ccc917912ecea4a399fc7d62
Diffstat (limited to 'loc')
-rwxr-xr-xloc35
1 files changed, 35 insertions, 0 deletions
diff --git a/loc b/loc
new file mode 100755
index 000000000..4f40d415a
--- /dev/null
+++ b/loc
@@ -0,0 +1,35 @@
+#!/bin/bash
+
+ANSIBLE=`find ansible -type f -exec cat {} \; | wc -l`
+DOCKER=`find docker -type f -exec cat {} \; | wc -l`
+DOC=`find doc -type f -exec cat {} \; | wc -l`
+TESTS=`find tests -type f -exec cat {} \; | wc -l`
+BUILD=`find kolla -type f -exec cat {} \; | wc -l`
+
+DEMOS=`find demos -type f -exec cat {} \; | wc -l`
+DEVENV=`find devenv -type f -exec cat {} \; | wc -l`
+SPECS=`find specs -type f -exec cat {} \; | wc -l`
+ETC=`find etc -type f -exec cat {} \; | wc -l`
+TOOLS=`find tools -type f -exec cat {} \; | wc -l`
+VAGRANT=`find vagrant -type f -exec cat {} \; | wc -l`
+
+CORE=$(($ANSIBLE+$DOCKER+$TESTS+$DOCS+$BUILD))
+SUPP=$(($DEMOS+$DEVENV+$SPECS+$ETC+$TOOLS+$VAGRANT))
+TOTAL=$(($CORE+$SUPP))
+
+
+echo "Ansible $ANSIBLE"
+echo "Build $BUILD"
+echo "Demos $DEMOS"
+echo "Doc $DOC"
+echo "Etc $ETC"
+echo "Docker $DOCKER"
+echo "Devenv $DEVENV"
+echo "Specs $SPECS"
+echo "Tests $TESTS"
+echo "Tools $TOOLS"
+echo "Vagrant $VAGRANT"
+echo ""
+echo "Core Code $CORE"
+echo "Support Code $SUPP"
+echo "Total Code $TOTAL"