summaryrefslogtreecommitdiff
path: root/tools/updateAuthors.awk
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2010-07-01 14:31:42 -0700
committerRyan Dahl <ry@tinyclouds.org>2010-07-01 14:31:42 -0700
commit2998e3bafa60d94e88eb6a4c7f82d24b9c9f7ca7 (patch)
treefad6435cc7f2405341f9765741ac95cc4e8c2d07 /tools/updateAuthors.awk
parent24de2bd58ca6c4490d9af282ba16d4249565c41b (diff)
downloadnode-new-2998e3bafa60d94e88eb6a4c7f82d24b9c9f7ca7.tar.gz
Add my awk script to update AUTHORS file
Diffstat (limited to 'tools/updateAuthors.awk')
-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 0000000000..ad93357353
--- /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 ">";
+ }
+}
+