Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenan Yildirim <kenan@kenany.me>2015-01-10 20:10:22 +0300
committerForrest L Norvell <forrest@npmjs.com>2015-01-24 08:00:54 +0300
commit102708704c8c4f0ea99775d38f8d1efecf584940 (patch)
treeab532a4417cc24dde1f6b821bb0c36f62ec8b9fd /scripts
parent0d173287336650606d4c91818bb7bcfb0c5d57a1 (diff)
add script for updating AUTHORS file
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/update-authors.sh20
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