1#!/bin/sh 2#*************************************************************************** 3# _ _ ____ _ 4# Project ___| | | | _ \| | 5# / __| | | | |_) | | 6# | (__| |_| | _ <| |___ 7# \___|\___/|_| \_\_____| 8# 9# Copyright (C) 2013 - 2020, Daniel Stenberg, <daniel@haxx.se>, 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.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 29start=$1 30 31if test "$start" = "-h"; then 32 echo "Usage: $0 <since this tag/hash>" 33 exit 34fi 35if test -z "$start"; then 36 start=`git tag --sort=taggerdate | grep "^curl-" | tail -1`; 37fi 38 39 40# We also include curl-www if possible. Override by setting CURLWWW 41if [ -z "$CURLWWW" ] ; then 42 CURLWWW=../curl-www 43fi 44 45cat ./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 56egrep -ai '(^Author|^Commit|by):' | \ 57cut -d: -f2- | \ 58cut '-d(' -f1 | \ 59cut '-d<' -f1 | \ 60tr , '\012' | \ 61sed 's/ at github/ on github/' | \ 62sed 's/ and /\n/' | \ 63sed -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 whitespace 68grep -a "^ [^ (]" RELEASE-NOTES| \ 69sed 's/, */\n/g'| \ 70sed 's/^ *//' 71 72)| \ 73sed -f ./docs/THANKS-filter | \ 74grep -a ' ' | \ 75sort -fu | \ 76grep -aixvf ./docs/THANKS 77