summaryrefslogtreecommitdiff
path: root/scripts/gen-authors.sh
blob: 3ef8391cc9c688379e59665c8564982139feb6e2 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash

printf "# date: $(date)\n" > AUTHORS
printf "# this file is auto-generated by scripts/gen-authors.sh\n\n" >> AUTHORS

git log --format='%an <%ae>' --reverse --date=short master | awk '!seen[$0]++' | sort >> AUTHORS

# if necessary, update your name here. for example: jdoe -> John Doe
sed -i '' 's/^jdoe/John Doe/g' AUTHORS