Fix title glitch in release-notes script

This commit is contained in:
pancake 2022-03-15 19:53:02 +01:00
parent f544c625bd
commit d759ee6a07

View File

@ -40,8 +40,7 @@ if [ ! -s .l ]; then
fi
grep ^Author .l | cut -d : -f 2- | sed -e 's,radare,pancake,' | sort -u > .A
echo "Release Notes"
echo "-------------"
echo "## Release Notes"
echo
echo "Version: ${VERS}"
echo "Previous: ${PREV}"
@ -49,19 +48,17 @@ printf "Commits: "
grep ^commit .l | wc -l | xargs echo
echo "Contributors: `wc -l .A | awk '{print $1}'`"
echo
echo "Highlights"
echo "----------"
echo "## Highlights"
echo "<details><summary>More details</summary><p>"
echo "Authors"
echo "-------"
echo
echo "## Authors"
echo
cat .A | perl -ne '/([^<]+)(.*)$/;$a=$1;$b=$2;$a=~s/^\s+|\s+$//g;$b=~s/[<>\s]//g;print "[$a](mailto:$b) "'
echo
echo
echo "Changes"
echo "-------"
echo "## Changes"
echo
cat .l | grep -v ^commit | grep -v ^Author | grep -v ^Date > .x
cat .x | grep '##' | perl -ne '/##([^ ]*)/; if ($1) {print "$1\n";}' | sort -u > .y
@ -73,8 +70,7 @@ for a in `cat .y` ; do
done
if [ -n "`echo $@ | grep -- -v`" ]; then
echo "To Review"
echo "---------"
echo "## To Review"
cat .x | grep -v '##' | sed -e 's,^ *,,g' | grep -v "^$" | \
perl -ne 'if (/^\*/) { print "$_"; } else { print "* $_";}'
echo