kolla-ansible/loc
Steven Dake 60b8b690a0 Fix up loc with change to devenv
The devenv directory rename broke the loc tool.  Fix it.

TrivialFix

Change-Id: I96e0a57b6a594309e24b8e2384afe3a39c73b245
2015-10-12 09:02:30 -07:00

36 lines
1.1 KiB
Bash
Executable File

#!/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`
HEAT=`find dev/heat -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 "Heat $HEAT"
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"