DEADSOFTWARE

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