contributors.sh: better grep pattern, use grep -a
This commit is contained in:
Родитель
1c057f6ecf
Коммит
f704d6bf00
|
@ -45,20 +45,20 @@ fi
|
||||||
# awk them into RELEASE-NOTES format
|
# awk them into RELEASE-NOTES format
|
||||||
(
|
(
|
||||||
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' | \
|
||||||
sed 's/ and /\n/' | \
|
sed 's/ and /\n/' | \
|
||||||
sed -e 's/^ //' -e 's/ $//g' -e 's/@users.noreply.github.com$/ on github/'
|
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/, */\n/g'| \
|
||||||
sed 's/^ *//'
|
sed 's/^ *//'
|
||||||
|
|
||||||
)| \
|
)| \
|
||||||
sed -f ./docs/THANKS-filter | \
|
sed -f ./docs/THANKS-filter | \
|
||||||
grep ' ' | \
|
grep -a ' ' | \
|
||||||
sort -fu | \
|
sort -fu | \
|
||||||
awk '{
|
awk '{
|
||||||
num++;
|
num++;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче