diff options
-rwxr-xr-x | scripts/gen_plots.sh | 5 | ||||
-rw-r--r-- | src/Makefile | 7 |
2 files changed, 7 insertions, 5 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. diff --git a/src/Makefile b/src/Makefile index 84deadc2..29781b2b 100644 --- a/src/Makefile +++ b/src/Makefile @@ -359,7 +359,7 @@ win32gtk_zip = win32gtk-2.24.32.zip win32curses_zip = win32curses39.zip pdcurses_zip = PDCurses-3.9.zip gtkosx_tgz = gtkosx-2.24.31.tar.gz -cloc = cloc-1.60.pl +cloc_zip = v1.90.zip LexLPeg = LexLPeg.cxx LexLPeg.h @@ -424,7 +424,8 @@ win32curses: pdcurses.patch | $(win32curses_zip) $(pdcurses_zip) cp $@/src/wincon/pdcurses.a $@/lib/ $(gtkosx_tgz): ; $(WGET) $(root_url)/textadept-build/raw/default/$@ gtkosx: | $(gtkosx_tgz) ; mkdir $@ && tar xzf $| -C $@ && mv $@/*/* $@ -$(cloc): ; $(WGET) http://prdownloads.sourceforge.net/cloc/$@ +$(cloc_zip): ; $(WGET) https://github.com/AlDanial/cloc/archive/refs/tags/$@ +cloc: | $(cloc_zip) ; unzip -j $| "*/$@" -x "*/Unix/$@" clean-deps: rm -rf scintilla ../lexers lexilla $(LexLPeg) lua gtdialog cdk termkey win32gtk win32curses \ @@ -434,5 +435,5 @@ clean-deps: sources = ../core ../modules/ansi_c ../modules/lua ../modules/textadept textadept.c Makefile \ ../init.lua -count: $(cloc) ; perl $< $(sources) --not-match-f=tadoc.lua +count: cloc ; perl $< $(sources) --not-match-f=tadoc.lua --exclude-lang=SVG plots: ; ../scripts/gen_plots.sh |