summaryrefslogtreecommitdiff
path: root/contributors.sh
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2014-01-20 17:08:08 +0100
committerDaniel Stenberg <daniel@haxx.se>2014-01-20 17:08:08 +0100
commit12ecd56da77c4cd986e4a932d5d79645c19a3d4a (patch)
treebbf35fbc902bb93ddb151ae216212768b50dd367 /contributors.sh
parent6217cf6ba36fce9acc9c786f5ae6310ede29c412 (diff)
downloadcurl-12ecd56da77c4cd986e4a932d5d79645c19a3d4a.tar.gz
contributors.sh: output list RELEASE-NOTES formatted
Diffstat (limited to 'contributors.sh')
-rwxr-xr-xcontributors.sh23
1 files changed, 21 insertions, 2 deletions
diff --git a/contributors.sh b/contributors.sh
index 1052de704..41f9cb158 100755
--- a/contributors.sh
+++ b/contributors.sh
@@ -6,7 +6,7 @@
# | (__| |_| | _ <| |___
# \___|\___/|_| \_\_____|
#
-# Copyright (C) 2013, Daniel Stenberg, <daniel@haxx.se>, et al.
+# Copyright (C) 2013-2014, Daniel Stenberg, <daniel@haxx.se>, et al.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
@@ -37,10 +37,29 @@ fi
# cut off spaces first and last on the line
# only count names with a space (ie more than one word)
# sort all unique names
+# awk them into RELEASE-NOTES format
git log $start..HEAD | \
egrep '(Author|Commit|by):' | \
cut -d: -f2- | \
cut '-d<' -f1 | \
sed -e 's/^ //' -e 's/ $//g' | \
grep ' ' | \
-sort -u
+sort -u |
+awk '{
+ num++;
+ n = sprintf("%s%s%s,", n, length(n)?" ":"", $0);
+ #print n;
+ if(length(n) > 78) {
+ printf(" %s\n", p);
+ n=sprintf("%s,", $0);
+ }
+ p=n;
+
+}
+
+ END {
+ printf(" %s\n", p);
+ printf(" (%d contributors)\n", num);
+ }
+
+'