Skip to content
This repository has been archived by the owner on Jan 6, 2024. It is now read-only.

Commit

Permalink
scripts/contri*sh: no longer grep -v ' '
Browse files Browse the repository at this point in the history
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 curl#11206
  • Loading branch information
bagder committed May 26, 2023
1 parent 196f3c3 commit af7670c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
18 changes: 9 additions & 9 deletions scripts/contributors.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 0 additions & 1 deletion scripts/contrithanks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,5 @@ sed 's/^ *//'

)| \
sed -f ./docs/THANKS-filter | \
grep -a ' ' | \
sort -fu | \
grep -aixvf ./docs/THANKS

0 comments on commit af7670c

Please sign in to comment.