diff options
author | Daniel Stenberg <daniel@haxx.se> | 2016-05-23 09:13:43 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2016-05-23 09:13:43 +0200 |
commit | f704d6bf0007e158405dd27fcffb21bb8095a36a (patch) | |
tree | 0628ec7f7d4a72bc81a2a2666d8c745d6c61b6fc /scripts | |
parent | 1c057f6ecf4827386d699303a272ee6b197989dc (diff) | |
download | curl-f704d6bf0007e158405dd27fcffb21bb8095a36a.tar.gz |
contributors.sh: better grep pattern, use grep -a
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/contributors.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/contributors.sh b/scripts/contributors.sh index 071251524..d62baade6 100755 --- a/scripts/contributors.sh +++ b/scripts/contributors.sh @@ -45,20 +45,20 @@ fi # awk them into RELEASE-NOTES format ( git log $start..HEAD | \ -egrep -i '(Author|Commit|by):' | \ +egrep -ai '(^Author|^Commit|by):' | \ cut -d: -f2- | \ cut '-d<' -f1 | \ tr , '\012' | \ sed 's/ and /\n/' | \ sed -e 's/^ //' -e 's/ $//g' -e 's/@users.noreply.github.com$/ on github/' -grep "^ [^ \(]" RELEASE-NOTES| \ +grep -a "^ [^ \(]" RELEASE-NOTES| \ sed 's/, */\n/g'| \ sed 's/^ *//' )| \ sed -f ./docs/THANKS-filter | \ -grep ' ' | \ +grep -a ' ' | \ sort -fu | \ awk '{ num++; |