projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix typo
[openwrt.git]
/
package
/
base-files
/
default
/
lib
/
config
/
template.awk
diff --git
a/package/base-files/default/lib/config/template.awk
b/package/base-files/default/lib/config/template.awk
index
9ce32b7
..
faae8b3
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
}
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++) {
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 ""
}
}
print ""
}
This page took
0.022847 seconds
and
4
git commands to generate.