From 189927b73545e91f5bef79afd66ff2c8431075d2 Mon Sep 17 00:00:00 2001 From: Ruediger Pluem Date: Mon, 13 Jul 2020 10:29:11 +0000 Subject: Add a new way to document changes * Makefile.in: Define the update-changes target to merge the change files from the changes directory to the top of the CHANGES file and remove them afterwards. If a Subversion binary was found during configure try to svn rm them otherwise just delete them. * configure.in: Search for the Subversion binary. * acinclude.m4: Set the corresponding Makefile variable for the Subversion binary. * README.CHANGES: New file to document the new approach. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1879822 13f79535-47bb-0310-9956-ffa450edef68 --- Makefile.in | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'Makefile.in') diff --git a/Makefile.in b/Makefile.in index df59db6fde..6a2be8d830 100644 --- a/Makefile.in +++ b/Makefile.in @@ -166,6 +166,26 @@ docs: echo ' http://httpd.apache.org/docs-project/docsformat.html'; \ fi +update-changes: + @for i in `find changes -type f`; do \ + cp CHANGES CHANGES.tmp ; \ + awk -vfname=$$i 'BEGIN{done = 0} \ + done == 0 && /^Changes with Apache /{ active = 1; print; next}; \ + /^ *\*/ && active == 1 && done == 0{rec=$$0; while(getline CHANGES ; \ + rm CHANGES.tmp ; \ + if [ -n "$(SVN)" ] ; then \ + if ! $(SVN) rm $$i 2>/dev/null ; then \ + $(RM) $$i ; \ + fi ; \ + else \ + $(RM) $$i ; \ + fi ; \ + done ; \ + if [ -n "$(SVN)" ] ; then \ + $(SVN) diff CHANGES ; \ + fi + validate-xml: @if test -d $(top_srcdir)/docs/manual/build; then \ cd $(top_srcdir)/docs/manual/build && ./build.sh validate-xml; \ -- cgit v1.2.3