ohhhhhhhhhhh (exclude linux-extra-rootfs.img build artifact)

This commit is contained in:
Linehu
2026-10-01 23:13:42 +08:00
parent 737a2cb0db
commit 1074962546
533 changed files with 133239 additions and 5460 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/usr/bin/env bash
# Strip CR from serial capture logs so they can be read as plain text.
set -u
cd "$(dirname "$0")/../../.build_tmp" || exit 1
for f in "$@"; do
[ -f "$f" ] || { echo "missing: $f"; continue; }
out="${f%.txt}_clean.txt"
# drop CR plus any control/graphics bytes the read tool would treat as binary
tr -cd '\11\12\40-\176' < "$f" > "$out"
echo "ok $f -> $out ($(wc -l < "$out") lines)"
done