Browse Source

devtools/credit: remove ZmnSCPxj from naming twice!

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
bump-pyln-proto
Rusty Russell 4 years ago
parent
commit
1ddf44a792
  1. 8
      devtools/credit

8
devtools/credit

@ -8,7 +8,7 @@ if [ x"$1" = x"--verbose" ]; then
fi
if [ "$#" != 1 ]; then
echo "Usage: $0 <last-tag>" >&2
echo "Usage: $0 [--verbose] <last-tag>" >&2
exit 1
fi
PREV_TAG="$1"
@ -18,7 +18,7 @@ if [ -z $(git tag -l "$PREV_TAG") ]; then
exit 1
fi
git log "$PREV_TAG".. --format="%an|%ae" | sort | uniq -c | sort -rn > /tmp/authors.$$
sed -n 's/.*[Nn]amed by //p' < CHANGELOG.md > /tmp/namers.$$
sed -n 's/.*[Nn]amed by //p' < CHANGELOG.md | sed 's/(.*)//' | tr -dc '[:alnum:][:space:]' > /tmp/namers.$$
git log "$PREV_TAG" --format="%an|%ae" | sort -u > /tmp/prev-authors.$$
NAMER=""
@ -34,6 +34,10 @@ while read LINE; do
if [ $(grep -ci -- "$NAME\|$EMAIL" /tmp/prev-authors.$$) = 0 ]; then
NOTES="$NOTES""NEW COMMITTER "
fi
# ZmnSCPxj gave himself a surname!
if [ "${NAME%% *}" = ZmnSCPxj ]; then
NAME=ZmnSCPxj
fi
if ! grep -qi -- "$NAME" /tmp/namers.$$; then
if [ -z "$NAMER" ]; then
NAMER="$NAME"

Loading…
Cancel
Save