From: Omar Polo Subject: got-www: generate HTML page from CHANGES To: gameoftrees@openbsd.org Date: Sun, 27 Oct 2024 18:21:10 +0100 Just an idea. It's easier to read the changelog on a web browser this way, and we could even link the changes for a specific release? Here's a preview: https://tmp.omarpolo.com/changes.html If ok I'll commit the generated releases/changes.html as well. Thoughs? Do we need something similar for -portable too? =) diff /home/op/w/got-www commit - 2fa5e3a8004ff7eea62475253244dec9567b245f path + /home/op/w/got-www blob - /dev/null file + sync-changes.sh (mode 755) --- /dev/null +++ sync-changes.sh @@ -0,0 +1,94 @@ +#!/bin/sh + +exec >releases/changes.html + +cat < + + + + Game of Trees Changes + + + + + + + +

+Game of Trees +Changes +

+
+ +

+See git repository history for per-change authorship information +

+ +EOF + +awk ' +// { + sub("^ +", "") + sub(" +$", "") +} +/^\*/ { + if (change != "") { + emit(change) + print("") + } + if (insublist) { + insublist = 0 + print("") + } + sub(";", "", $3) + version = $3 + date = $4 + printf("

%s; %s

\n", date, date, version, date) + print("") + } + sub("^- *", "", $0) + change = $0 + next +} +/^o / { + if (change != "") + emit(change) + if (!insublist) { + insublist = 1 + print("