X-Git-Url: http://deadsoftware.ru/gitweb?p=dsw-obn.git;a=blobdiff_plain;f=count.sh;h=57fabcecb1a0d96b5998710264e7c82ae5d68de4;hp=a07d82253e57e2ba65e88a30d5af2c5e536667d5;hb=HEAD;hpb=9e6d0f74f74926a9c73d15418c2e9668689061f2 diff --git a/count.sh b/count.sh index a07d822..57fabce 100755 --- a/count.sh +++ b/count.sh @@ -1,3 +1,40 @@ #!/bin/sh -wc -l $(find . -name '*.c' -or -name '*.h') +CompilerSources() +{ + find src -name '*.c' -or -name '*.h' +} + +RuntimeSources() +{ + find rtl -name '*.java' -or -name '*.obn' +} + +TestsSources() +{ + find tests -name '*.obn' +} + +OctaoxygenSources() +{ + find octaoxygen -name '*.obn' -or -name '*.Mod' +} + +echo Compiler Sources: +wc -l $(CompilerSources) + +echo +echo Runtime Library: +wc -l $(RuntimeSources) + +echo +echo Tests: +wc -l $(TestsSources) + +echo +echo Octaoxygen: +wc -l $(OctaoxygenSources) + +echo +echo Total: +wc -l $(CompilerSources) $(RuntimeSources) $(TestsSources) $(OctaoxygenSources) | grep total