diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2010-04-01 17:10:50 +0200 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2010-04-01 17:10:50 +0200 |
commit | 39f755ee067a6b2ab05dfb4b32a6857131985d2b (patch) | |
tree | 87084a1aa3c83a402aecf52c3b0c2479c6ffbfd6 /scripts | |
parent | 6a3dd5655e6077dd45ad6eafef146daf278cd179 (diff) | |
download | ptxdist-39f755ee067a6b2ab05dfb4b32a6857131985d2b.tar.gz ptxdist-39f755ee067a6b2ab05dfb4b32a6857131985d2b.tar.xz |
[ptxd_make_import] don't prefix stuff in ""
...like in default statements
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/lib/ptxd_make_import.awk | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/scripts/lib/ptxd_make_import.awk b/scripts/lib/ptxd_make_import.awk index 7f6f79992..8a457478d 100755 --- a/scripts/lib/ptxd_make_import.awk +++ b/scripts/lib/ptxd_make_import.awk @@ -101,14 +101,19 @@ FNR == 1 { # add prefix to symbols on line # function add_prefix(IN, in_match) { -# depends on FOO && BAR -# +--------+ +-------+ -# | | -# in_match[1] | -# | -# in_match[4] - - match(IN, /^([[:space:]]*(config|select|default|if|depends([[:space:]]+on)?)[[:space:]]+)(.*)$/, in_match); +# depends on FOO && BAR +# +----------------+ +--------+ +# | | +# in_match[1] | +# | +# in_match[4] + + match(IN, /^([[:space:]]*(config|select|default|if|depends([[:space:]]+on)?)[[:space:]]+)((")?[^"]*(")?)$/, in_match); + + # don't convert things wrapped in "" + if (in_match[5] ~ /"/) { + return $0; + } # don't convert "N" symbols like in "default N" return in_match[1] gensub(/(!)?(N[A-Z0-9_]+|[A-MO-Z]+[A-Z0-9_]*)/, "\\1" prefix "\\2", "g", in_match[4]); |