diff options
Diffstat (limited to 'scripts/gen_plots.sh')
-rwxr-xr-x | scripts/gen_plots.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/gen_plots.sh b/scripts/gen_plots.sh index 9cde1147..9f3af339 100755 --- a/scripts/gen_plots.sh +++ b/scripts/gen_plots.sh @@ -14,8 +14,9 @@ for rev in `hg tags | awk '{print $2}' | cut -d: -f1 | tac`; do date=`hg log -r $rev | grep ^date | cut -d: -f2- | tr + - | cut -d- -f1` hg update -r $rev -q timestamp=`date -d "$date" "+%s"` - counts=`cloc --force-lang=C,h --quiet --csv --exclude-dir=doc,docs,scripts,themes,test,.github \ - --not-match-f=adeptsensedoc\\|tadoc . | tail -n +3 | cut -d, -f2- | sort | tr '\n' ,` + counts=`cloc --force-lang=C,h --include-lang=C,Lua,make --quiet --csv \ + --exclude-dir=doc,docs,scripts,themes,test,.github --not-match-f=adeptsensedoc\\|tadoc . | \ + tail -n +3 | head -n -1 | cut -d, -f2- | sort | tr '\n' ,` echo $timestamp,$counts done | lua -e " -- Filter counts from cloc into a data format readable by gnuplot. |