rockbox/tools/checkwps/parse_configure.awk
Maurus Cuelenaere 074b2504e4 Checkwps: use script for getting the targets instead of hardcoded file (fixes checkwps due to target renaming)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24122 a1c6a512-1295-4272-9138-f99709370657
2009-12-29 21:49:44 +00:00

11 lines
191 B
Awk

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