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

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2010-07-02 01:31:42 +0400
committerRyan Dahl <ry@tinyclouds.org>2010-07-02 01:31:42 +0400
commit2998e3bafa60d94e88eb6a4c7f82d24b9c9f7ca7 (patch)
treefad6435cc7f2405341f9765741ac95cc4e8c2d07 /tools
parent24de2bd58ca6c4490d9af282ba16d4249565c41b (diff)
Add my awk script to update AUTHORS file
Diffstat (limited to 'tools')
-rw-r--r--tools/updateAuthors.awk13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/updateAuthors.awk b/tools/updateAuthors.awk
new file mode 100644
index 00000000000..ad93357353a
--- /dev/null
+++ b/tools/updateAuthors.awk
@@ -0,0 +1,13 @@
+# git log --pretty='format:%ae %an' | tail -r | awk -f updateAuthors.awk
+{
+ if (!x[$1]++) {
+ #print $0
+ n = split($0, a, " ");
+ s = a[2];
+ for (i = 3; i <= n ; i++) {
+ s = s " " a[i];
+ }
+ print s " <" $1 ">";
+ }
+}
+