X-Git-Url: http://deadsoftware.ru/gitweb?p=dsw-obn.git;a=blobdiff_plain;f=count.sh;h=57fabcecb1a0d96b5998710264e7c82ae5d68de4;hp=1e5db9d4cb6161501395c42576d05f640f69d145;hb=HEAD;hpb=0f382f6efef254a295e71dc82ddd0f87b95aaddd diff --git a/count.sh b/count.sh index 1e5db9d..57fabce 100755 --- a/count.sh +++ b/count.sh @@ -1,16 +1,40 @@ #!/bin/sh +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 $(find . -name '*.c' -or -name '*.h') +wc -l $(CompilerSources) echo echo Runtime Library: -wc -l $(find rtl -name '*.java' -or -name '*.obn') +wc -l $(RuntimeSources) echo echo Tests: -wc -l $(find tests -name '*.obn') +wc -l $(TestsSources) + +echo +echo Octaoxygen: +wc -l $(OctaoxygenSources) echo echo Total: -wc -l $(find . -name '*.c' -or -name '*.h' -or -name '*.java' -or -name '*.obn') | grep total +wc -l $(CompilerSources) $(RuntimeSources) $(TestsSources) $(OctaoxygenSources) | grep total