summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2019-01-24 19:13:37 +0100
committerWolfram Sang <wsa+renesas@sang-engineering.com>2019-01-24 20:19:55 +0100
commit7d695694425743646ac2a8b131d2d091a6af80c7 (patch)
treef68f30c7c97a34b86206ea6614bc9c825b887320 /scripts
parent9f0140d45a788ce509eeeed4a4bd6d0ddf356a18 (diff)
scripts/periupport_conv: handle multiple U: lines per commit
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/periupport_conv10
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/periupport_conv b/scripts/periupport_conv
index 987f059..39bf388 100755
--- a/scripts/periupport_conv
+++ b/scripts/periupport_conv
@@ -25,8 +25,9 @@ gawk -v dst="$DST" -v cmd="$uuid_cmd" '
}
/^U: / {
- upstream[bsp_id] = substr($0, 4, 40)
- upstream_desc[bsp_id] = substr($0, 46)
+ upstream_id = substr($0, 4, 40)
+ upstream[bsp_id][upstream_id] = upstream_id
+ upstream_desc[bsp_id][upstream_id] = substr($0, 46)
}
/^*: / { gsub(/"/, "ยด"); comment[bsp_id] = substr($0, 4) }
@@ -59,8 +60,9 @@ gawk -v dst="$DST" -v cmd="$uuid_cmd" '
print "upstream:" >> F
for (idx in sorted_idx) {
commit = tasks[task][sorted_idx[idx]]
- if (upstream[commit])
- print " - torvalds: " upstream[commit] " # " upstream_desc[commit] >> F
+ if (isarray(upstream[commit]))
+ for (upstream_id in upstream[commit])
+ print " - torvalds: " upstream[commit][upstream_id] " # " upstream_desc[commit][upstream_id] >> F
}
print "" >> F