stats sript output slightly more meaningful now
This commit is contained in:
parent
8a7d4e8994
commit
535f88a908
@ -2,11 +2,6 @@
|
|||||||
|
|
||||||
# Some basic Metrics about the project itself
|
# Some basic Metrics about the project itself
|
||||||
|
|
||||||
red=
|
|
||||||
green=
|
|
||||||
blue=
|
|
||||||
nc=
|
|
||||||
|
|
||||||
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}'`
|
||||||
m_code=`wc -l makefile link.ld bochsrc.conf | tail -1 | awk '{print $1}'`
|
m_code=`wc -l makefile link.ld bochsrc.conf | tail -1 | awk '{print $1}'`
|
||||||
@ -14,9 +9,10 @@ sh_code=`wc -l scripts/*.sh | tail -1 | awk '{print $1}'`
|
|||||||
|
|
||||||
echo C $c_code > stats.dat
|
echo C $c_code > stats.dat
|
||||||
echo ASM $s_code >> stats.dat
|
echo ASM $s_code >> stats.dat
|
||||||
echo Misc $m_code >> stats.dat
|
echo Misc"(LinkScripts/Configs)" $m_code >> stats.dat
|
||||||
echo Shell $sh_code >> stats.dat
|
echo Shell $sh_code >> stats.dat
|
||||||
|
|
||||||
termgraph stats.dat --color blue --title "Language Usage"
|
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
|
||||||
|
|
||||||
rm -f stats.dat
|
rm -f stats.dat
|
||||||
|
Loading…
Reference in New Issue
Block a user