rockbox/tools/checkwps/parse_configure.awk
Solomon Peachy 8a94a37502 checkwps: Exclude targets that only exist as a bootloader from buildall
Change-Id: I95cb65a204b4e509d48c9a8fb009d438f382a9f6
2025-09-27 13:47:04 -04:00

16 lines
261 B
Awk

BEGIN { FS="[|)]" }
/^[ \t]*([0-9]+)\|([^)]+)\)$/ {
model=$2
blonly="no"
}
/^[ \t]*blonly="[^"]+"$/ {
blonly="yes"
}
/^[ \t]*target="[^"]+"$/ {
match($0, "=\".+\"")
target=substr($0, RSTART+2, RLENGTH-3)
print target, model, blonly
}