Changed the release script to not pick up other email addresses than those of contributors from the release notes.

- Legacy-Id: 17369
This commit is contained in:
Henrik Levkowetz 2020-02-28 15:34:59 +00:00
parent edbe42e890
commit 2133cb010c

View file

@ -244,7 +244,8 @@ if [ -d ../coverage ]; then
rsync -a static/coverage/ ../coverage/$VER/
fi
contributors=$(echo "$changes" | sed 's/\.[ \t\n]/ /'| tr -c "a-z0-9.@-" "\n" | sort | uniq | grep '@' | sed -r -e 's/^\.+//' -e 's/\.+$//' -e 's/^/-c /' || true)
contributors=$(echo "$changes" | gawk '/^ \* Merged in \[[0-9]+\] from [^: ]+/ {sub(":",""); print $6;}' )
note "Contributors: $contributors"
note "Setting the current time on the release notes in the changelog file ..."
$do sed -r -i -e "1,/^ -- /s/([A-Za-z-]+ <[a-z0-9.-]+@[a-z0-9.-]+> ).*$/\1$(TZ=UTC date +'%d %b %Y %H:%M:%S %z')/" changelog