rockbox/tools/checkwps/parse_configure.awk
Thomas Martitz 295c1c1e8b checkwps: Fix buildall.sh and some RaaA/ypr0 versions.
Change-Id: I5889743e94ed568c8f7dcc50de0b03b8421969f7
2012-02-10 20:27:59 +01:00

12 lines
190 B
Awk

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