commit count added to stats script
This commit is contained in:
parent
c4cb07be82
commit
4bea237989
@ -1,6 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Some basic Metrics about the project itself
|
# 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}'`
|
c_code=`wc -l *.c *.h | tail -1 | awk '{print $1}'`
|
||||||
s_code=`wc -l *.s | 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"
|
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 `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
|
rm -f stats.dat
|
||||||
|
Loading…
Reference in New Issue
Block a user