cat ../CHANGELOG.md | gawk ' BEGIN { listBegan=0 latest=1 version=0 } /^\s*##/ { if(!latest) { listBegan=0 print " " print " " print " " print " " print " https://artifacts.ad5001.eu/repository/apps.ad5001.eu-apps/logarithmplotter/v"version"/logarithmplotter-v"version"-setup.exe" print " " print " " print " https://artifacts.ad5001.eu/repository/apps.ad5001.eu-apps/logarithmplotter/v"version"/LogarithmPlotter-v"version"-setup.dmg" print " " print " " print " https://artifacts.ad5001.eu/repository/apps.ad5001.eu-apps/logarithmplotter/v"version"/logarithmplotter-"version".tar.gz" print " " print " " print " " } latest=0 cmd ="date \"+%Y-%m-%d\" -d \""substr($3,2,2)" "$4" "substr($5,0,4)"\"" cmd | getline date version = substr($2,2,5) print " " 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 "
" print " " print " " print " https://artifacts.ad5001.eu/repository/apps.ad5001.eu-apps/logarithmplotter/v"version"/logarithmplotter-v"version"-setup.exe" print " " print " " print " https://artifacts.ad5001.eu/repository/apps.ad5001.eu-apps/logarithmplotter/v"version"/LogarithmPlotter-v"version"-setup.dmg" print " " print " " print " https://artifacts.ad5001.eu/repository/apps.ad5001.eu-apps/logarithmplotter/v"version"/logarithmplotter-"version".tar.gz" print " " 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 "
    " #} #}'