projects
/
openwrt
/
staging
/
wigyori.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff9c317
)
template.awk fix processing of certain config file formats
author
Felix Fietkau
<nbd@openwrt.org>
Fri, 20 Oct 2006 12:56:42 +0000
(12:56 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Fri, 20 Oct 2006 12:56:42 +0000
(12:56 +0000)
SVN-Revision: 5249
package/base-files/default/lib/config/template.awk
patch
|
blob
|
history
diff --git
a/package/base-files/default/lib/config/template.awk
b/package/base-files/default/lib/config/template.awk
index 9ce32b74ffbaa79180fb213212b9f86d9b30ad3b..faae8b345c808998fb6c5881d25aaa7bf5efa2f2 100644
(file)
--- a/
package/base-files/default/lib/config/template.awk
+++ b/
package/base-files/default/lib/config/template.awk
@@
-27,11
+27,11
@@
$1 == "@else" {
else noprint = 1
}
-($1 !~ /^@[a-zA-Z]/) && (noprint != 1) {
+($1 !~ /^@[a-zA-Z
0-9_
]/) && (noprint != 1) {
n=split(line "@@", a, /@@/)
for (i=1; i<=n; i++) {
- if ((i % 2) == 1) printf a[i]
- else printf v[a[i]]
+ if ((i % 2) == 1) printf
"%s"
a[i]
+ else printf
"%s"
v[a[i]]
}
print ""
}