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

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

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