aboutsummaryrefslogtreecommitdiff
path: root/loc
blob: 4f40d415ae382dd495388d1cd4180e85f6324edf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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"