Debian Codegraph @

deps/curl/scripts/contrithanks.sh

raw
1 #!/bin/sh
2 #***************************************************************************
3 # _ _ ____ _
4 # Project ___| | | | _ \| |
5 # / __| | | | |_) | |
6 # | (__| |_| | _ <| |___
7 # \___|\___/|_| \_\_____|
8 #
9 # Copyright (C) 2013-2017, Daniel Stenberg, <[email protected]>, et al.
10 #
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 https://curl.haxx.se/docs/copyright.html.
14 #
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.
18 #
19 # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
20 # KIND, either express or implied.
21 #
22 ###########################################################################
23
24 #
25 # This script shows all mentioned contributors from <hash> until HEAD and
26 # puts them at the end of the THANKS document on stdout
27 #
28
29 start=$1
30
31 if test "$start" = "-h"; then
32 echo "Usage: $0 <since this tag/hash>"
33 exit
34 fi
35 if test -z "$start"; then
36 start=`git tag --sort=taggerdate | tail -1`;
37 fi
38
39
40 # We also include curl-www if possible. Override by setting CURLWWW
41 if [ -z "$CURLWWW" ] ; then
42 CURLWWW=../curl-www
43 fi
44
45 cat ./docs/THANKS
46
47 (
48 (
49 git log --use-mailmap $start..HEAD
50 if [ -d "$CURLWWW" ]
51 then
52 git -C ../curl-www log --use-mailmap $start..HEAD
53 fi
54 ) | \
55
56 egrep -ai '(^Author|^Commit|by):' | \
57 cut -d: -f2- | \
58 cut '-d(' -f1 | \
59 cut '-d<' -f1 | \
60 tr , '\012' | \
61 sed 's/ at github/ on github/' | \
62 sed 's/ and /\n/' | \
63 sed -e 's/^ //' -e 's/ $//g' -e 's/@users.noreply.github.com$/ on github/'
64
65 # grep out the list of names from RELEASE-NOTES
66 # split on ", "
67 # remove leading white spaces
68 grep -a "^ [^ (]" RELEASE-NOTES| \
69 sed 's/, */\n/g'| \
70 sed 's/^ *//'
71
72 )| \
73 sed -f ./docs/THANKS-filter | \
74 grep -a ' ' | \
75 sort -fu | \
76 grep -aixvf ./docs/THANKS