2 #***************************************************************************
4 # Project ___| | | | _ \| |
6 # | (__| |_| | _ <| |___
7 # \___|\___/|_| \_\_____|
9 # Copyright (C) 2013-2014, Daniel Stenberg, <daniel@haxx.se>, et al.
11 # This software is licensed as described in the file COPYING, which
12 # you should have received as part of this distribution. The terms
13 # are also available at http://curl.haxx.se/docs/copyright.html.
15 # You may opt to use, copy, modify, merge, publish, distribute and/or sell
16 # copies of the Software, and permit persons to whom the Software is
17 # furnished to do so, under the terms of the COPYING file.
19 # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
20 # KIND, either express or implied.
22 ###########################################################################
25 # This script shows all mentioned contributors from <hash> until HEAD. To aid
26 # when writing RELEASE-NOTES and THANKS.
31 if test -z "$start"; then
32 echo "Usage: $0 <since this tag/hash>"
35 # filter out Author:, Commit: and *by: lines
36 # cut off the email parts
37 # cut off spaces first and last on the line
38 # only count names with a space (ie more than one word)
39 # sort all unique names
40 # awk them into RELEASE-NOTES format
41 git log $start..HEAD | \
42 egrep '(Author|Commit|by):' | \
45 sed -e 's/^ //' -e 's/ $//g' | \
50 n = sprintf("%s%s%s,", n, length(n)?" ":"", $0);
62 printf(" (%d contributors)\n", num);