From: Amos Jeffries Date: Mon, 20 Feb 2023 07:05:13 +0000 (+0000) Subject: Maintenance: improve release notes automation (#1264) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14ec8b26aca6d8b9107ebbce49616cd660f311c5;p=thirdparty%2Fsquid.git Maintenance: improve release notes automation (#1264) * auto-update the text version numbers * add template for automatic series creation --- diff --git a/doc/release-notes/Makefile.am b/doc/release-notes/Makefile.am index 8c02db8595..f083062c6a 100644 --- a/doc/release-notes/Makefile.am +++ b/doc/release-notes/Makefile.am @@ -19,6 +19,14 @@ DOC= release-5 # latex $(DOC).tex # +%.sgml: %.sgml.in + sed \ + -e "s%[@]SQUID_VERSION[@]%$(VERSION)%g" \ + -e "s%[@]SQUID_RELEASE[@]%$(SQUID_RELEASE)%g" \ + -e "s%[@]SQUID_RELEASE_OLD[@]%$$(( $(SQUID_RELEASE) - 1 ))%g" \ + < $< >$@ + test `grep -c "@SQUID" $@` -eq 0 + %.sgml: %.sgml.in sed \ -e "s%[@]SQUID_VERSION[@]%$(VERSION)%g" \