Files
splash/tools/make_authors_from_git.sh
2023-11-11 21:54:26 -05:00

27 lines
606 B
Bash
Executable File

#!/bin/bash
AUTHORS="../Authors.md"
if ! [ -f "$AUTHORS" ]
then
AUTHORS="./Authors.md"
if ! [ -f "$AUTHORS" ]
then
echo "no authors file found, exiting"
exit
fi
fi
# order by number of commits
git log --format='%aN' | \
sed 's/Jeremie Soria/Jérémie Soria/' | \
sed 's/Marie-Eve$/Marie-Eve Dumas/' | \
sed 's/nicolas/Nicolas Bouillot/' | \
sed 's/Emamnuel Durand/Emmanuel Durand/' | \
sed 's/eviau/Edith Viau/' | \
sed 's/eva_decorps/Eva Décorps/' | \
grep -v metalab | \
sort | \
uniq -c | sort -bgr | \
sed 's/\ *[0-9]*\ /\* /' > ${AUTHORS}