From 4bea23798945c4a4924cc9d938910bce32711dfe Mon Sep 17 00:00:00 2001 From: shockrah Date: Sat, 9 Nov 2019 14:37:54 -0800 Subject: [PATCH] commit count added to stats script --- scripts/stats.sh | 2 ++ 1 file changed, 2 insertions(+) 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