summaryrefslogtreecommitdiffstats
path: root/tools/checkwps/parse_configure.awk
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2009-12-29 21:49:44 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2009-12-29 21:49:44 +0000
commit074b2504e48dc4d5c31cd6dc979b92561cc4b707 (patch)
tree3dc0708dd7880342c88496a2085fb20d5815cff7 /tools/checkwps/parse_configure.awk
parente15a0c911846d974e0a5d202b30864a0725ff839 (diff)
downloadrockbox-074b2504e48dc4d5c31cd6dc979b92561cc4b707.tar.gz
rockbox-074b2504e48dc4d5c31cd6dc979b92561cc4b707.tar.bz2
rockbox-074b2504e48dc4d5c31cd6dc979b92561cc4b707.zip
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
Diffstat (limited to 'tools/checkwps/parse_configure.awk')
-rw-r--r--tools/checkwps/parse_configure.awk11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/checkwps/parse_configure.awk b/tools/checkwps/parse_configure.awk
new file mode 100644
index 0000000000..0cb0c0b392
--- /dev/null
+++ b/tools/checkwps/parse_configure.awk
@@ -0,0 +1,11 @@
+BEGIN { FS="[|)]" }
+
+/^[ \t]*([0-9]+)\|([^)]+)\)$/ {
+ model=$2
+}
+
+/^[ \t]*target="[^"]+"$/ {
+ match($0, "-D[^\"]+")
+ target=substr($0, RSTART+2, RLENGTH-2)
+ print target, model
+}