2022-10-16 08:08:47 +13:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# This scripts generates the CREDITS file in the repository root, which
|
2023-12-27 12:25:52 +13:00
|
|
|
# contains a list of all contributors ot the Redlib project.
|
2022-10-16 08:08:47 +13:00
|
|
|
#
|
|
|
|
# We use git-log to surface the names and emails of all authors and committers,
|
|
|
|
# and grep will filter any automated commits due to GitHub.
|
|
|
|
|
|
|
|
set -o pipefail
|
|
|
|
|
|
|
|
cd "$(dirname "${BASH_SOURCE[0]}")/../" || exit 1
|
|
|
|
git --no-pager log --pretty='%an <%ae>%n%cn <%ce>' master \
|
|
|
|
| sort -t'<' -u -k1,1 -k2,2 \
|
|
|
|
| grep -Fv -- 'GitHub <noreply@github.com>' \
|
|
|
|
> CREDITS
|