4 # Fetch full Git history if needed, e.g. when run via CI.
5 git fetch --unshallow 2>/dev/null
7 # Update doc/AUTHORS.adoc with Git commit authors plus authors mentioned via
8 # a "Co-authored-by:" in the commit message.
9 (git log | grep -Po "(?<=Co-authored-by: )(.*)(?= <)"; \
10 git log --format="%aN") \
12 | LANG=en_US.utf8 sort -uf \
13 | perl -00 -p -i -e 's/^\*.*/<STDIN> . "\n"/es' doc/AUTHORS.adoc