Commit ed8ef709 authored by Wei-Yin Chen (陳威尹)'s avatar Wei-Yin Chen (陳威尹) Committed by Commit Bot

Amend dom-distiller script for bug ID handling

"None" would be ignored, and add space after ",".

Bug: None
Change-Id: I85167f2e9ba0cea7affd754825fd34e817568bd5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2304337Reviewed-by: default avatarDominic Mazzoni <dmazzoni@chromium.org>
Commit-Queue: Wei-Yin Chen (陳威尹) <wychen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#789569}
parent dd2bfe66
...@@ -43,12 +43,12 @@ ...@@ -43,12 +43,12 @@
# rejoin. Finally, remove the trailing ',' and concat to $bugs. # rejoin. Finally, remove the trailing ',' and concat to $bugs.
git log ${curr_gitsha}..${new_gitsha} \ git log ${curr_gitsha}..${new_gitsha} \
| grep -E 'BUG=|Bug:' \ | grep -E 'BUG=|Bug:' \
| sed -e 's/.*\(BUG=\|Bug:\)\(.*\)/\2/' -e 's/\s*//g' -e '/^$/d' \ | sed -e 's/.*\(BUG=\|Bug:\)\(.*\)/\2/' -e 's/\s*//g' -e '/^$/d' -e '/None/d' \
| tr ',' '\n' \ | tr ',' '\n' \
| sort \ | sort \
| uniq \ | uniq \
| tr '\n' ',' \ | tr '\n' ', ' \
| head --bytes=-1 \ | head --bytes=-2 \
>> $bugs >> $bugs
echo >> $bugs # add a newline echo >> $bugs # add a newline
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment