123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- #!/bin/sh
- set -eu
- start="${1:-}"
- if test "$start" = "-h"; then
- echo "Usage: $0 <since this tag/hash> [--releasenotes]"
- exit
- fi
- if test -z "$start"; then
- start=$(git tag --sort=taggerdate | grep "^curl-" | tail -1)
- echo "Since $start:"
- fi
- CURLWWW="${CURLWWW:-../curl-www}"
- {
- {
- git log --pretty=full --use-mailmap "$start..HEAD"
- if [ -d "$CURLWWW" ]; then
- git -C "$CURLWWW" log --pretty=full --use-mailmap "$start..HEAD"
- 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/'
- grep -a "^ [^ \(]" RELEASE-NOTES| \
- sed 's/, */\n/g'| \
- sed 's/^ *//'
- } | \
- sed -f ./docs/THANKS-filter | \
- sort -fu | \
- awk '
- {
- if(length($0)) {
- num++;
- n = sprintf("%s%s%s,", n, length(n)?" ":"", $0);
- #print n;
- if(length(n) > 77) {
- printf(" %s\n", p);
- n=sprintf("%s,", $0);
- }
- p=n;
- }
- }
- END {
- pp=substr(p,1,length(p)-1);
- printf(" %s\n", pp);
- printf(" (%d contributors)\n", num);
- }
- '
|