]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Maintenance: improve release notes automation (#1264)
authorAmos Jeffries <yadij@users.noreply.github.com>
Mon, 20 Feb 2023 07:05:13 +0000 (07:05 +0000)
committerAmos Jeffries <yadij@users.noreply.github.com>
Sun, 30 Jul 2023 03:19:42 +0000 (15:19 +1200)
* auto-update the text version numbers
* add template for automatic series creation

doc/release-notes/Makefile.am

index 8c02db8595fd3c74a02f616a5c552256f01317fa..f083062c6aa91b5a75f8ccb14bb258bd43b03da6 100644 (file)
@@ -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" \