build: reenable just-moved/broken syntax-check rule
authorJim Meyering <meyering@redhat.com>
Fri, 31 Aug 2012 10:08:49 +0000 (12:08 +0200)
committerJim Meyering <meyering@redhat.com>
Fri, 31 Aug 2012 10:08:49 +0000 (12:08 +0200)
* cfg.mk (sc_option_desc_uppercase): Now that this rule lives in cfg.mk,
we must search man/*.1, not "*.1".
Reported by Bernhard Voelker.

cfg.mk

diff --git a/cfg.mk b/cfg.mk
index 44a43f8..c945ea6 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -173,9 +173,8 @@ sc_long_lines:
 ALL_RECURSIVE_TARGETS += sc_option_desc_uppercase
 .PHONY: sc_option_desc_uppercase
 sc_option_desc_uppercase:
-       @grep '^\\fB\\-' -A1 *.1 | LC_ALL=C grep '\.1.[A-Z][a-z]' && \
-           { echo 1>&2 '$@: found initial capitals in --help';   \
-             exit 1; } || :;
+       @grep '^\\fB\\-' -A1 man/*.1 | LC_ALL=C grep '\.1.[A-Z][a-z]'   \
+         && { echo 1>&2 '$@: found initial capitals in --help'; exit 1; } || :
 sc_option_desc_uppercase: $(dist_man1_MANS) \
                           $(patsubst %,man/%.1,$(NO_INSTALL_PROGS_DEFAULT)) \
                           all_programs