Add code statistics script

This commit is contained in:
Nikita Lisitsa 2021-02-26 14:48:35 +03:00
parent 99ed9edf1d
commit 7cda050345

5
stats.sh Executable file
View file

@ -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)