mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-01-26 09:41:06 +02:00
template.awk fix processing of certain config file formats
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5249 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
2646b412a1
commit
c5a86e2fbb
@ -27,11 +27,11 @@ $1 == "@else" {
|
||||
else noprint = 1
|
||||
}
|
||||
|
||||
($1 !~ /^@[a-zA-Z]/) && (noprint != 1) {
|
||||
($1 !~ /^@[a-zA-Z0-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 ""
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user