From: Daniel Stenberg Date: Thu, 25 May 2023 12:59:21 +0000 (+0200) Subject: scripts/contri*sh: no longer grep -v ' ' X-Git-Tag: curl-8_1_2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af7670cf7640945003bed5787a0d319b82d2f1a6;p=thirdparty%2Fcurl.git scripts/contri*sh: no longer grep -v ' ' Originally these scripts filtered out names that have no space so that they better avoid nick names not intended for credits. Such names are not too commonly used, plus we now give credit even to those. Additionally: non-latin names, like Asian, don't have spaces at all so they were also filtered out and had to be manually added which made it an error-prone operation where Asian names eventually easily fell off by mistake. Closes #11206 --- diff --git a/scripts/contributors.sh b/scripts/contributors.sh index 7b1cda3855..90ea5c94d7 100755 --- a/scripts/contributors.sh +++ b/scripts/contributors.sh @@ -78,18 +78,18 @@ sed 's/^ *//' )| \ sed -f ./docs/THANKS-filter | \ -grep -a ' ' | \ sort -fu | \ awk '{ - num++; - n = sprintf("%s%s%s,", n, length(n)?" ":"", $0); - #print n; - if(length(n) > 77) { - printf(" %s\n", p); - n=sprintf("%s,", $0); + 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; } - p=n; - } END { diff --git a/scripts/contrithanks.sh b/scripts/contrithanks.sh index 46853da9a0..b188422881 100755 --- a/scripts/contrithanks.sh +++ b/scripts/contrithanks.sh @@ -73,6 +73,5 @@ sed 's/^ *//' )| \ sed -f ./docs/THANKS-filter | \ -grep -a ' ' | \ sort -fu | \ grep -aixvf ./docs/THANKS