diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/update-authors.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts/update-authors.sh b/scripts/update-authors.sh new file mode 100755 index 000000000..8708e240e --- /dev/null +++ b/scripts/update-authors.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +git log --reverse --format='%aN <%aE>' | awk ' +BEGIN { + print "# Authors sorted by whether or not they'\''re me"; +} + +{ + if (all[$NF] != 1) { + all[$NF] = 1; + ordered[length(all)] = $0; + } +} + +END { + for (i in ordered) { + print ordered[i]; + } +} +' > AUTHORS
\ No newline at end of file |