1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2026-08-18 10:22:31 +02:00

Add code_size.sh

This commit is contained in:
norbert-walter
2026-03-06 14:48:55 +01:00
parent 5f161ce839
commit bc1440c428
+14
View File
@@ -0,0 +1,14 @@
#!/bin/bash
dir="$1"
total=0
while IFS= read -r -d '' file; do
lines=$(wc -l < "$file")
echo "$file : $lines"
total=$((total + lines))
done < <(find "$dir" \( -name "*.c" -o -name "*.cpp" -o -name "*.h" \) -type f -print0)
echo "-----------------------"
echo "Over all files: $total"