Bump to ccache 4.4
[platform/upstream/ccache.git] / misc / update-authors
1 #!/bin/sh
2
3 if [ -d .git ]; then
4     # Fetch full Git history if needed, e.g. when run via CI.
5     git fetch --unshallow 2>/dev/null
6
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") \
11         | sed 's/^/* /' \
12         | LANG=en_US.utf8 sort -uf \
13         | perl -00 -p -i -e 's/^\*.*/<STDIN> . "\n"/es' doc/AUTHORS.adoc
14 fi