]> granicus.if.org Git - curl/commitdiff
contrithanks.sh: use same grep pattern and -a flag as contributors.sh
authorDaniel Stenberg <daniel@haxx.se>
Mon, 23 May 2016 07:14:19 +0000 (09:14 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 23 May 2016 07:14:19 +0000 (09:14 +0200)
scripts/contrithanks.sh

index 71239a14f90e95f2c16816daa148d376cf45aa9c..63073042b0c2799c4841bfcaa58756491ca33c3a 100755 (executable)
@@ -36,7 +36,7 @@ cat ./docs/THANKS
 
 (
 git log $start..HEAD | \
-egrep -i '(Author|Commit|by):' | \
+egrep -ai '(^Author|^Commit|by):' | \
 cut -d: -f2- | \
 cut '-d<' -f1 | \
 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
 # split on ", "
 # remove leading white spaces
-grep "^  [^ (]" RELEASE-NOTES| \
+grep -a "^  [^ (]" RELEASE-NOTES| \
 sed 's/, */\n/g'| \
 sed 's/^ *//'
 
 )| \
 sed -f ./docs/THANKS-filter | \
-grep ' ' | \
+grep -a ' ' | \
 sort -fu | \
-grep -xvf ./docs/THANKS
+grep -axvf ./docs/THANKS