diff options
author | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2019-01-24 19:13:37 +0100 |
---|---|---|
committer | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2019-01-24 20:19:55 +0100 |
commit | 7d695694425743646ac2a8b131d2d091a6af80c7 (patch) | |
tree | f68f30c7c97a34b86206ea6614bc9c825b887320 /scripts/periupport_conv | |
parent | 9f0140d45a788ce509eeeed4a4bd6d0ddf356a18 (diff) |
scripts/periupport_conv: handle multiple U: lines per commit
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Diffstat (limited to 'scripts/periupport_conv')
-rwxr-xr-x | scripts/periupport_conv | 10 |
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 |