cat ../CHANGELOG.md | awk ' BEGIN { listBegan=0 latest=1 } /^\s*##/ { if(!latest) { listBegan=0 print " " print " " } latest=0 cmd ="date \"+%Y-%m-%d\" -d \""substr($3,2,2)" "$4" "substr($5,0,4)"\"" cmd | getline date print " " print "

Changes for "$2":

" } /^\s*\*\*/ { if(listBegan) { print " " } listBegan=1 s = ""; for (i = 1; i <= NF; i++) s = s " " $i; print "

"substr(s,4,length(s)-5)"

" print " " print "
" }' #'{ #if($1 == "*") { # s = ""; for (i = 2; i <= NF; i++) s = s " " $i; # print "
  • "substr(s,2)"
  • " #} else if($1 == "##") { # cmd ="date \"+%Y-%m-%d\" -d \""substr($3,2,2)" "$4" "substr($5,0,4)"\"" # cmd | getline date # print " " # print "

    Changes for "$2":

    " # print " " # print "
    " #} #}'