From 7cda05034592a01b99da17c0b02b05502bc9f9ee Mon Sep 17 00:00:00 2001 From: lisyarus Date: Fri, 26 Feb 2021 14:48:35 +0300 Subject: [PATCH] Add code statistics script --- stats.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 stats.sh diff --git a/stats.sh b/stats.sh new file mode 100755 index 00000000..3fb3c445 --- /dev/null +++ b/stats.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +echo "Total commits:" $(git rev-list --all --count) +echo "Source files: " $(find tools/ libs/ examples/ -name '*.cpp' -or -name '*.hpp' | wc -l) +echo "Source lines: " $(find tools/ libs/ examples/ -name '*.cpp' -or -name '*.hpp' | xargs cat | wc -l)