kolla/tools/loc
Steven Dake 3a5a31e456 Clean up loc
LOC was broken and called out vagrant specifically.  This patch
makes LOC work and renames "Vagrant" to "devenv".

Change-Id: I29f930114d3cba17e870437c99eb3cbae6abb251
2016-11-18 08:02:19 -05:00

32 lines
911 B
Bash
Executable File

#!/bin/bash
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 contrib/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`
DEVENV=`find contrib/dev -type f -exec cat {} \; | wc -l`
CORE=$(($DOCKER+$TESTS+$DOCS+$BUILD+$TOOLS))
SUPP=$(($DEVENV+$SPECS+$ETC))
TOTAL=$(($CORE+$SUPP))
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 "Devenv $DEVENV"
echo ""
echo "Core Code $CORE"
echo "Support Code $SUPP"
echo "Total Code $TOTAL"