2015-04-21 05:18:54 -04:00
|
|
|
#!/bin/sh
|
|
|
|
#***************************************************************************
|
|
|
|
# _ _ ____ _
|
|
|
|
# Project ___| | | | _ \| |
|
|
|
|
# / __| | | | |_) | |
|
|
|
|
# | (__| |_| | _ <| |___
|
|
|
|
# \___|\___/|_| \_\_____|
|
|
|
|
#
|
2020-03-23 09:44:29 -04:00
|
|
|
# Copyright (C) 2013 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
|
2015-04-21 05:18:54 -04:00
|
|
|
#
|
|
|
|
# This software is licensed as described in the file COPYING, which
|
|
|
|
# you should have received as part of this distribution. The terms
|
2016-02-02 18:19:02 -05:00
|
|
|
# are also available at https://curl.haxx.se/docs/copyright.html.
|
2015-04-21 05:18:54 -04:00
|
|
|
#
|
|
|
|
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
|
|
|
# copies of the Software, and permit persons to whom the Software is
|
|
|
|
# furnished to do so, under the terms of the COPYING file.
|
|
|
|
#
|
|
|
|
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
# KIND, either express or implied.
|
|
|
|
#
|
|
|
|
###########################################################################
|
|
|
|
|
|
|
|
#
|
|
|
|
# This script shows all mentioned contributors from <hash> until HEAD and
|
|
|
|
# puts them at the end of the THANKS document on stdout
|
|
|
|
#
|
|
|
|
|
|
|
|
start=$1
|
|
|
|
|
2020-02-05 05:34:07 -05:00
|
|
|
if test "$start" = "-h"; then
|
2015-04-21 05:18:54 -04:00
|
|
|
echo "Usage: $0 <since this tag/hash>"
|
2020-02-05 05:34:07 -05:00
|
|
|
exit
|
|
|
|
fi
|
|
|
|
if test -z "$start"; then
|
2020-08-27 08:25:24 -04:00
|
|
|
start=`git tag --sort=taggerdate | grep "^curl-" | tail -1`;
|
2015-04-21 05:18:54 -04:00
|
|
|
fi
|
|
|
|
|
2020-02-05 05:45:47 -05:00
|
|
|
|
|
|
|
# We also include curl-www if possible. Override by setting CURLWWW
|
|
|
|
if [ -z "$CURLWWW" ] ; then
|
|
|
|
CURLWWW=../curl-www
|
|
|
|
fi
|
|
|
|
|
2015-04-21 05:18:54 -04:00
|
|
|
cat ./docs/THANKS
|
|
|
|
|
|
|
|
(
|
2020-02-05 05:45:47 -05:00
|
|
|
(
|
|
|
|
git log --use-mailmap $start..HEAD
|
|
|
|
if [ -d "$CURLWWW" ]
|
|
|
|
then
|
|
|
|
git -C ../curl-www log --use-mailmap $start..HEAD
|
|
|
|
fi
|
|
|
|
) | \
|
|
|
|
|
2016-05-23 03:14:19 -04:00
|
|
|
egrep -ai '(^Author|^Commit|by):' | \
|
2015-04-21 05:18:54 -04:00
|
|
|
cut -d: -f2- | \
|
2017-01-20 11:10:08 -05:00
|
|
|
cut '-d(' -f1 | \
|
2015-04-21 05:18:54 -04:00
|
|
|
cut '-d<' -f1 | \
|
|
|
|
tr , '\012' | \
|
2017-12-12 02:44:13 -05:00
|
|
|
sed 's/ at github/ on github/' | \
|
2015-04-21 05:18:54 -04:00
|
|
|
sed 's/ and /\n/' | \
|
2016-05-23 02:50:53 -04:00
|
|
|
sed -e 's/^ //' -e 's/ $//g' -e 's/@users.noreply.github.com$/ on github/'
|
2015-04-21 05:18:54 -04:00
|
|
|
|
|
|
|
# grep out the list of names from RELEASE-NOTES
|
|
|
|
# split on ", "
|
2020-09-30 15:10:14 -04:00
|
|
|
# remove leading whitespace
|
2016-05-23 03:14:19 -04:00
|
|
|
grep -a "^ [^ (]" RELEASE-NOTES| \
|
2015-04-21 05:18:54 -04:00
|
|
|
sed 's/, */\n/g'| \
|
|
|
|
sed 's/^ *//'
|
|
|
|
|
|
|
|
)| \
|
|
|
|
sed -f ./docs/THANKS-filter | \
|
2016-05-23 03:14:19 -04:00
|
|
|
grep -a ' ' | \
|
2015-04-21 05:18:54 -04:00
|
|
|
sort -fu | \
|
2016-05-23 04:07:48 -04:00
|
|
|
grep -aixvf ./docs/THANKS
|