From f3d5722682201383f6c3d23dd9c8b51a47f90b01 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sat, 20 Nov 2021 17:08:42 +0100 Subject: getstats.py: count .am/.ac files. --- dist-tools/getstats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dist-tools/getstats.py') diff --git a/dist-tools/getstats.py b/dist-tools/getstats.py index ad52f464..4c45318b 100755 --- a/dist-tools/getstats.py +++ b/dist-tools/getstats.py @@ -12,7 +12,7 @@ from datetime import date # Get version and date with tempfile.TemporaryDirectory() as tmpdirname: subprocess.check_call("git archive --format=tar HEAD | ( cd {} && tar -xf -)".format(tmpdirname), shell=True) - LOC = subprocess.getoutput("cat {0}/*.[chly] {0}/*.py 2>/dev/null | wc -l".format(tmpdirname)).strip() + LOC = subprocess.getoutput("cat {0}/*.[chly] {0}/*.a[cm] {0}/*.py 2>/dev/null | wc -l".format(tmpdirname)).strip() try: with open("configure.ac") as f: AC_INIT = list(filter(lambda x: re.match('AC_INIT', x), -- cgit v1.2.3