diff options
author | Kenan Yildirim <kenan@kenany.me> | 2015-01-10 20:10:22 +0300 |
---|---|---|
committer | Forrest L Norvell <forrest@npmjs.com> | 2015-01-24 08:00:54 +0300 |
commit | 102708704c8c4f0ea99775d38f8d1efecf584940 (patch) | |
tree | ab532a4417cc24dde1f6b821bb0c36f62ec8b9fd /scripts | |
parent | 0d173287336650606d4c91818bb7bcfb0c5d57a1 (diff) |
add script for updating AUTHORS file
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 |