summaryrefslogtreecommitdiffstats
path: root/tools/checkwps/parse_configure.awk
blob: 19dce810ab8c84ddbf95288106dee5f16aa07211 (plain)
1
2
3
4
5
6
7
8
9
10
11
BEGIN { FS="[|)]" }

/^[ \t]*([0-9]+)\|([^)]+)\)$/ {
    model=$2
}

/^[ \t]*target="[^"]+"$/ {
    match($0, "=\".+\"")
    target=substr($0, RSTART+2, RLENGTH-3)
    print target, model
}