2015-04-21 17:18:54 +08:00
|
|
|
#!/bin/sh
|
|
|
|
#***************************************************************************
|
|
|
|
# _ _ ____ _
|
|
|
|
# Project ___| | | | _ \| |
|
|
|
|
# / __| | | | |_) | |
|
|
|
|
# | (__| |_| | _ <| |___
|
|
|
|
# \___|\___/|_| \_\_____|
|
|
|
|
#
|
2023-01-02 20:51:48 +08:00
|
|
|
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
2015-04-21 17:18:54 +08:00
|
|
|
#
|
|
|
|
# This software is licensed as described in the file COPYING, which
|
|
|
|
# you should have received as part of this distribution. The terms
|
2020-11-04 21:02:01 +08:00
|
|
|
# are also available at https://curl.se/docs/copyright.html.
|
2015-04-21 17:18:54 +08: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.
|
|
|
|
#
|
2020-02-05 18:45:47 +08:00
|
|
|
# SPDX-License-Identifier: curl
|
2022-05-17 17:16:50 +08:00
|
|
|
#
|
2015-04-21 17:18:54 +08:00
|
|
|
###########################################################################
|
|
|
|
|
|
|
|
#
|
|
|
|
# This script shows all mentioned contributors from <hash> until HEAD and
|
|
|
|
# puts them at the end of the THANKS document on stdout
|
|
|
|
#
|
|
|
|
|
2024-04-07 18:02:49 +08:00
|
|
|
set -eu
|
|
|
|
|
|
|
|
start="${1:-}"
|
2015-04-21 17:18:54 +08:00
|
|
|
|
2020-02-05 18:34:07 +08:00
|
|
|
if test "$start" = "-h"; then
|
2015-04-21 17:18:54 +08:00
|
|
|
echo "Usage: $0 <since this tag/hash>"
|
2020-02-05 18:34:07 +08:00
|
|
|
exit
|
|
|
|
fi
|
|
|
|
if test -z "$start"; then
|
2024-04-07 18:02:49 +08:00
|
|
|
start=$(git tag --sort=taggerdate | grep "^curl-" | tail -1)
|
2015-04-21 17:18:54 +08:00
|
|
|
fi
|
|
|
|
|
2020-02-05 18:45:47 +08:00
|
|
|
# We also include curl-www if possible. Override by setting CURLWWW
|
2024-04-07 18:02:49 +08:00
|
|
|
CURLWWW="${CURLWWW:-../curl-www}"
|
2020-02-05 18:45:47 +08:00
|
|
|
|
2015-04-21 17:18:54 +08:00
|
|
|
cat ./docs/THANKS
|
|
|
|
|
2024-04-07 18:02:49 +08:00
|
|
|
{
|
|
|
|
{
|
|
|
|
git log --use-mailmap "$start..HEAD"
|
|
|
|
if [ -d "$CURLWWW" ]; then
|
2024-04-08 17:47:20 +08:00
|
|
|
git -C "$CURLWWW" log --use-mailmap "$start..HEAD"
|
2024-04-07 18:02:49 +08:00
|
|
|
fi
|
|
|
|
} | \
|
|
|
|
grep -Eai '(^Author|^Commit|by):' | \
|
|
|
|
cut -d: -f2- | \
|
|
|
|
cut '-d(' -f1 | \
|
|
|
|
cut '-d<' -f1 | \
|
|
|
|
tr , '\012' | \
|
|
|
|
sed 's/ at github/ on github/' | \
|
|
|
|
sed 's/ and /\n/' | \
|
|
|
|
sed -e 's/^ //' -e 's/ $//g' -e 's/@users.noreply.github.com$/ on github/'
|
2015-04-21 17:18:54 +08:00
|
|
|
|
2024-04-07 18:02:49 +08:00
|
|
|
# grep out the list of names from RELEASE-NOTES
|
|
|
|
# split on ", "
|
|
|
|
# remove leading whitespace
|
|
|
|
grep -a "^ [^ (]" RELEASE-NOTES| \
|
|
|
|
sed 's/, */\n/g'| \
|
|
|
|
sed 's/^ *//'
|
|
|
|
} | \
|
2015-04-21 17:18:54 +08:00
|
|
|
sed -f ./docs/THANKS-filter | \
|
|
|
|
sort -fu | \
|
2024-07-30 18:14:48 +08:00
|
|
|
grep -aixvFf ./docs/THANKS
|