diff options
author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-12-29 21:49:44 +0000 |
---|---|---|
committer | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-12-29 21:49:44 +0000 |
commit | 074b2504e48dc4d5c31cd6dc979b92561cc4b707 (patch) | |
tree | 3dc0708dd7880342c88496a2085fb20d5815cff7 /tools/checkwps/parse_configure.awk | |
parent | e15a0c911846d974e0a5d202b30864a0725ff839 (diff) | |
download | rockbox-074b2504e48dc4d5c31cd6dc979b92561cc4b707.tar.gz 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.awk | 11 |
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 @@ | |||
1 | BEGIN { FS="[|)]" } | ||
2 | |||
3 | /^[ \t]*([0-9]+)\|([^)]+)\)$/ { | ||
4 | model=$2 | ||
5 | } | ||
6 | |||
7 | /^[ \t]*target="[^"]+"$/ { | ||
8 | match($0, "-D[^\"]+") | ||
9 | target=substr($0, RSTART+2, RLENGTH-2) | ||
10 | print target, model | ||
11 | } | ||