DEADSOFTWARE

Добавлены строки в отладочную информацию класса (быстрохак)
[dsw-obn.git] / count.sh
index a07d82253e57e2ba65e88a30d5af2c5e536667d5..57fabcecb1a0d96b5998710264e7c82ae5d68de4 100755 (executable)
--- 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