0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/deps/npm/scripts/update-authors.sh
Forrest L Norvell af1bf49852 deps: upgrade npm to 2.5.1
PR-URL: https://github.com/iojs/io.js/pull/738
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
2015-02-06 18:38:36 +01:00

20 lines
278 B
Bash
Executable File

#!/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