diff --git a/sys/release-notes.sh b/sys/release-notes.sh index 3d5d85d777..b2f99c09a1 100755 --- a/sys/release-notes.sh +++ b/sys/release-notes.sh @@ -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 "
More details

" -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