[build] Use Markdown consistently within release notes

Pass both parts of the generated release notes through pandoc, to
ensure some consistency in terms of link styles and line lengths.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2026-03-02 22:13:38 +00:00
parent 3680a4ae52
commit 559282d5a7
+10 -4
View File
@@ -1664,13 +1664,19 @@ $(BIN)/reltitle.txt : $(BIN)/changes.md $(MAKEDEPS)
$(Q)head -1 $< | sed -E \
's/^\[(.*)\]\(.+\)\s+(.+)$$/\1 (\2)/; t; s/^\[(.*)\].*$$/\1/' > $@
# Generate release description
#
$(BIN)/reldesc.md : ../RELNOTES.tmpl.md $(MAKEDEPS)
$(QM)$(ECHO) " [RELDESC] $@"
$(Q)SRCNAME="$(SRCNAME)" SRCURL="$(SRCURL)" BINURL="$(BINURL)" \
$(ENVSUBST) '$$SRCNAME $$SRCURL $$BINURL' < $< | \
$(PANDOC) -f gfm -t gfm --columns 10000 > $@
# Generate release notes
#
$(BIN)/relnotes.md : ../RELNOTES.tmpl.md $(BIN)/changes.md $(MAKEDEPS)
$(BIN)/relnotes.md : $(BIN)/reldesc.md $(BIN)/changes.md $(MAKEDEPS)
$(QM)$(ECHO) " [RELNOTES] $@"
$(Q)( cat ../RELNOTES.tmpl.md ; tail -n +2 $(BIN)/changes.md ) | \
SRCNAME="$(SRCNAME)" SRCURL="$(SRCURL)" BINURL="$(BINURL)" \
$(ENVSUBST) '$$SRCNAME $$SRCURL $$BINURL' > $@
$(Q)( cat $(BIN)/reldesc.md ; tail -n +2 $(BIN)/changes.md ) > $@
endif # defined(BIN)