summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Davis <jrcd83@gmail.com>2011-09-01 22:12:50 +0200
committerJustin Davis <jrcd83@gmail.com>2011-09-01 22:12:50 +0200
commit277b235928cd90129d28e50aef7f93506db93c6c (patch)
tree8000e19f681ea3e7c8eddf65da3c6ce04dd1ea2b
parent7215ecc267adb311acc09c093e4937632ca4bf7e (diff)
downloadgenpkg-277b235928cd90129d28e50aef7f93506db93c6c.tar.gz
genpkg-277b235928cd90129d28e50aef7f93506db93c6c.tar.xz
Minor code cleanup, rename "key" var to "dblkey".
-rwxr-xr-xbin/pbjparse.awk8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/pbjparse.awk b/bin/pbjparse.awk
index e591ca8..e72d9d2 100755
--- a/bin/pbjparse.awk
+++ b/bin/pbjparse.awk
@@ -18,12 +18,12 @@ END {
}
else tcmd = "cat"
- for (key in pbvars) {
- split(key, keys, SUBSEP)
-
+ for (dblkey in pbvars) {
+ split(dblkey, keys, SUBSEP)
if (keys[2] != "len") continue
+
name = keys[1]
- len = pbvars[key]
+ len = pbvars[dblkey]
print name | tcmd
for (i=1; i<=len; i++) print pbvars[name,i] | tcmd