contrithanks.sh: use same grep pattern and -a flag as contributors.sh

This commit is contained in:
Daniel Stenberg 2016-05-23 09:14:19 +02:00
parent f704d6bf00
commit 9816c67b9b
1 changed files with 4 additions and 4 deletions

View File

@ -36,7 +36,7 @@ cat ./docs/THANKS
( (
git log $start..HEAD | \ git log $start..HEAD | \
egrep -i '(Author|Commit|by):' | \ egrep -ai '(^Author|^Commit|by):' | \
cut -d: -f2- | \ cut -d: -f2- | \
cut '-d<' -f1 | \ cut '-d<' -f1 | \
tr , '\012' | \ tr , '\012' | \
@ -46,12 +46,12 @@ sed -e 's/^ //' -e 's/ $//g' -e 's/@users.noreply.github.com$/ on github/'
# grep out the list of names from RELEASE-NOTES # grep out the list of names from RELEASE-NOTES
# split on ", " # split on ", "
# remove leading white spaces # remove leading white spaces
grep "^ [^ (]" RELEASE-NOTES| \ grep -a "^ [^ (]" RELEASE-NOTES| \
sed 's/, */\n/g'| \ sed 's/, */\n/g'| \
sed 's/^ *//' sed 's/^ *//'
)| \ )| \
sed -f ./docs/THANKS-filter | \ sed -f ./docs/THANKS-filter | \
grep ' ' | \ grep -a ' ' | \
sort -fu | \ sort -fu | \
grep -xvf ./docs/THANKS grep -axvf ./docs/THANKS