maintainer-makefile: Fix syntax-check rules wrt README.
authorBernhard Voelker <mail@bernhard-voelker.de>
Sun, 24 Sep 2023 16:13:50 +0000 (18:13 +0200)
committerBernhard Voelker <mail@bernhard-voelker.de>
Sun, 24 Sep 2023 17:37:05 +0000 (19:37 +0200)
* top/maint.mk (sc_readme_link_install): Change the value of the
variable in_vc_files to contain a pattern for the README file.
(sc_readme_link_copying): Likewise.
Previously, the above rules always passed, because the generated
list of files was empty.  Bug introduced when adding the rules
in commit 53b4bf3018.

ChangeLog
top/maint.mk

index 3dabcd0c2418bd564774551c95e0f70916fa817b..39b043775fdeb08531ed6f7da62e3869da63394e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2023-09-24  Bernhard Voelker  <mail@bernhard-voelker.de>
+
+       maintainer-makefile: Fix syntax-check rules wrt README.
+       * top/maint.mk (sc_readme_link_install): Change the value of the
+       variable in_vc_files to contain a pattern for the README file.
+       (sc_readme_link_copying): Likewise.
+       Previously, the above rules always passed, because the generated
+       list of files was empty.  Bug introduced when adding the rules
+       in commit 53b4bf3018.
+
 2023-09-22  Bruno Haible  <bruno@clisp.org>
 
        striconveh, *vasnprintf, vasnwprintf: Make more virtual-memory friendly.
index 1173b64d10379aca6578d38eeb9ce43ccf4ce5f5..c0dbc4d9ebed3c124bb96f5a68bbdf3c8b28c246 100644 (file)
@@ -1375,13 +1375,13 @@ sc_unportable_grep_q:
 
 sc_readme_link_install:
        @require='INSTALL'                                      \
-       in_vc_files='$(top_srcdir)/README$$'                    \
+       in_vc_files='^README$$'                                 \
        halt='The README file should refer to INSTALL'          \
          $(_sc_search_regexp)
 
 sc_readme_link_copying:
        @require='COPYING'                                      \
-       in_vc_files='$(top_srcdir)/README$$'                    \
+       in_vc_files='^README$$'                                 \
        halt='The README file should refer to COPYING[.LESSER]' \
          $(_sc_search_regexp)