diff --git a/scripts/stats.sh b/scripts/stats.sh index 68f613f..1f3c8ed 100644 --- a/scripts/stats.sh +++ b/scripts/stats.sh @@ -1,6 +1,7 @@ #!/bin/sh # Some basic Metrics about the project itself +# NOTE: requires termgraph to be installed `pip3 install termgraph should do it for most unix systems` c_code=`wc -l *.c *.h | tail -1 | awk '{print $1}'` s_code=`wc -l *.s | tail -1 | awk '{print $1}'` @@ -14,5 +15,6 @@ echo Shell $sh_code >> stats.dat termgraph stats.dat --color blue --title "Lines of Code per language" echo `wc -l *.c *.h *.s makefile link.ld bochsrc.conf scripts/*sh | tail -1` lines of code +echo Total commits: `git rev-list --all --count` rm -f stats.dat