Check if creating the dictionary worked before accessing it, not afterwards.
[kugel-rb.git] / tools / checkwps / parse_configure.awk
blob0cb0c0b39201d0028ea61ac455c2accc96349349
1 BEGIN { FS="[|)]" }
3 /^[ \t]*([0-9]+)\|([^)]+)\)$/ {
4 model=$2
7 /^[ \t]*target="[^"]+"$/ {
8 match($0, "-D[^\"]+")
9 target=substr($0, RSTART+2, RLENGTH-2)
10 print target, model