diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-10-13 15:37:32 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-10-13 15:37:32 +0000 |
| commit | 8f1746c78d709e3c5c64d0fbcd9df904bf72ac21 (patch) | |
| tree | 6d3b088f7828bc701282de0ac15af0594143cdd1 /tools | |
| parent | 9b2756bfd0564890247c1d865cf78a2ba2f536a4 (diff) | |
| parent | 3c14fe6139bc70139dc968bf6bc050f109f55112 (diff) | |
| download | kolla-8f1746c78d709e3c5c64d0fbcd9df904bf72ac21.tar.gz kolla-8f1746c78d709e3c5c64d0fbcd9df904bf72ac21.zip | |
Merge "Move loc tool into tools directory"
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/loc | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/tools/loc b/tools/loc new file mode 100755 index 000000000..d2885b78c --- /dev/null +++ b/tools/loc @@ -0,0 +1,33 @@ +#!/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` +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 dev/vagrant -type f -exec cat {} \; | wc -l` + +CORE=$(($ANSIBLE+$DOCKER+$TESTS+$DOCS+$BUILD)) +SUPP=$(($DEMOS+$HEAT+$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 "Specs $SPECS" +echo "Tests $TESTS" +echo "Tools $TOOLS" +echo "Vagrant $VAGRANT" +echo "" +echo "Core Code $CORE" +echo "Support Code $SUPP" +echo "Total Code $TOTAL" |
