From 074b2504e48dc4d5c31cd6dc979b92561cc4b707 Mon Sep 17 00:00:00 2001 From: Maurus Cuelenaere Date: Tue, 29 Dec 2009 21:49:44 +0000 Subject: 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 --- tools/checkwps/parse_configure.awk | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tools/checkwps/parse_configure.awk (limited to 'tools/checkwps/parse_configure.awk') 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 +} -- cgit v1.2.3