mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2026-08-18 18:32:30 +02:00
Add code_size.sh
This commit is contained in:
@@ -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"
|
||||
Reference in New Issue
Block a user