comparison mupdf-source/thirdparty/curl/scripts/contributors.sh @ 2:b50eed0cc0ef upstream

ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4. The directory name has changed: no version number in the expanded directory now.
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 15 Sep 2025 11:43:07 +0200
parents
children
comparison
equal deleted inserted replaced
1:1d09e1dec1d9 2:b50eed0cc0ef
1 #!/bin/sh
2 #***************************************************************************
3 # _ _ ____ _
4 # Project ___| | | | _ \| |
5 # / __| | | | |_) | |
6 # | (__| |_| | _ <| |___
7 # \___|\___/|_| \_\_____|
8 #
9 # Copyright (C) 2013-2018, 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.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 the given <hash>/<tag>
26 # until HEAD and adds the contributors already mentioned in the existing
27 # RELEASE-NOTES.
28 #
29
30 start=$1
31
32 if test -z "$start"; then
33 echo "Usage: $0 <since this tag/hash> [--releasenotes]"
34 exit
35 fi
36
37 # filter out Author:, Commit: and *by: lines
38 # cut off the email parts
39 # split list of names at comma
40 # split list of names at " and "
41 # cut off spaces first and last on the line
42 # filter alternatives through THANKS-filter
43 # only count names with a space (ie more than one word)
44 # sort all unique names
45 # awk them into RELEASE-NOTES format
46 (
47 git log --use-mailmap $start..HEAD | \
48 egrep -ai '(^Author|^Commit|by):' | \
49 cut -d: -f2- | \
50 cut '-d(' -f1 | \
51 cut '-d<' -f1 | \
52 tr , '\012' | \
53 sed 's/ at github/ on github/' | \
54 sed 's/ and /\n/' | \
55 sed -e 's/^ //' -e 's/ $//g' -e 's/@users.noreply.github.com$/ on github/'
56
57 grep -a "^ [^ \(]" RELEASE-NOTES| \
58 sed 's/, */\n/g'| \
59 sed 's/^ *//'
60
61 )| \
62 sed -f ./docs/THANKS-filter | \
63 grep -a ' ' | \
64 sort -fu | \
65 awk '{
66 num++;
67 n = sprintf("%s%s%s,", n, length(n)?" ":"", $0);
68 #print n;
69 if(length(n) > 77) {
70 printf(" %s\n", p);
71 n=sprintf("%s,", $0);
72 }
73 p=n;
74
75 }
76
77 END {
78 printf(" %s\n", p);
79 printf(" (%d contributors)\n", num);
80 }
81
82 '