summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorAzat Khuzhin <azat@libevent.org>2022-11-20 23:11:00 +0100
committerAzat Khuzhin <azat@libevent.org>2022-11-20 23:11:42 +0100
commitdfbb004a4ae0bbf225173854ca71ec0ea761cd9c (patch)
tree1dabde52ada79014076e717031353e9cb90337b5 /extra
parent82af0ea4eeb61466fabcd04dfcedee06a1ce3204 (diff)
downloadlibevent-dfbb004a4ae0bbf225173854ca71ec0ea761cd9c.tar.gz
Fix script for updating contributors
Diffstat (limited to 'extra')
-rwxr-xr-xextra/release/update-contributors.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/extra/release/update-contributors.sh b/extra/release/update-contributors.sh
index fe896b64..880752a8 100755
--- a/extra/release/update-contributors.sh
+++ b/extra/release/update-contributors.sh
@@ -12,13 +12,13 @@ function main()
git log "$(git describe --abbrev=0)..HEAD" --pretty='format:%cN%n%aN' > "$new_contributors"
awk '/^ \* / { split($0, cols, " \\* "); print(cols[2]); }' "$(path_in_repo CONTRIBUTORS.md)" | {
- grep -F -x -v -f "$new_contributors"
+ grep -F -x -v -f- "$new_contributors"
} | {
local grep_patterns=(
- GitHub
+ -e GitHub
)
grep -F -x -v "${grep_patterns[@]}"
- } > "$new_contributors.filtered"
+ } | sort -u > "$new_contributors.filtered"
awk '{printf(" * %s\n", $0)}' "$new_contributors.filtered" >> "$(path_in_repo CONTRIBUTORS.md)"
}
main "$@"