diff options
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 | } | ||