Files
ansible
contrib
deploy-guide
doc
etc
kolla_ansible
releasenotes
roles
specs
tests
tools
cleanup-containers
cleanup-host
cleanup-images
diag
init-runonce
init-vpn
kolla-ansible
kolla-libvirt-guests.service
loc
openrc-example
pre-commit-hook
run-bashate.sh
setup-compute-libvirt.yml
validate-all-file.py
validate-all-yaml.sh
validate-docker-execute.sh
validate-yaml.py
virt-guest-shutdown.target
zuul.d
.ansible-lint
.gitignore
.gitreview
.stestr.conf
.yamllint
CONTRIBUTING.rst
LICENSE
README.rst
bindep.txt
lint-requirements.txt
requirements.txt
requirements.yml
setup.cfg
setup.py
test-requirements.txt
tox.ini
kolla-ansible/tools/loc
Marc 'risson' Schmitt 839ec629bf tools: use /usr/bin/env bash instead of /bin/bash
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
Change-Id: I374f7427a4318d00ca474367818117e11789ec13
2021-08-17 14:29:33 +02:00

34 lines
1.0 KiB
Bash
Executable File

#!/usr/bin/env 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 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`
VAGRANT=`find contrib/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"