Fix awk gensub call in author_line_count.sh script.

NOTRY=TRUE

Bug: None
Change-Id: I706cf0a57e17f765bf90ccaad245a2c5573d8e0c
Reviewed-on: https://webrtc-review.googlesource.com/29740
Reviewed-by: Patrik Höglund <phoglund@webrtc.org>
Commit-Queue: Niels Moller <nisse@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#21109}
This commit is contained in:
Niels Möller
2017-12-05 12:46:08 +01:00
committed by Commit Bot
parent b5728d9b0f
commit c6109dbbfb

View File

@ -16,7 +16,7 @@ git log "$@" --pretty=format:%ae --shortstat \
| gawk '
/^[^ ]/ {
/* Some author "email addresses" have a trailing @svn-id, strip that out. */
author = gensub(/^([^@]*@[^@]*).*/, "\\1", "", $1);
author = gensub(/^([^@]*@[^@]*).*/, "\\1", "g", $1);
}
/^ .*insertion/ { total[author] += $1 }
/^ .*deletion/ { total[author] -= $1 }