mirror of
https://github.com/ipxe/ipxe
synced 2026-05-04 03:03:43 +03:00
[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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user