aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorGravatar mitchell <none@none>2021-06-16 11:59:37 -0400
committerGravatar mitchell <none@none>2021-06-16 11:59:37 -0400
commit1f64b73d9e7febad263a119b6591b23cd7ff2717 (patch)
treebf687474c68f38118aec9034a0b94720b38d4c88 /scripts
parent4ed27351ca8ee78f39b5029fa8a4514d3dec9567 (diff)
Updated to a more recent version of cloc for counting code.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/gen_plots.sh5
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.