summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2009-06-08 08:42:00 +0100
committerPádraig Brady <P@draigBrady.com>2009-06-08 15:35:31 +0100
commit502be19e0fdb52dbc76fe95d5a4966ef0b06f3dc (patch)
tree50050e47728c8e3044595266850065698cbbf164
parent523c40505cef796aefbe53337687c0103cd4cd72 (diff)
downloadcoreutils-502be19e0fdb52dbc76fe95d5a4966ef0b06f3dc.tar.xz
maint: Add a syntax-check to ensure all .x-sc_ files are distributed
* Makefile.am: Add a couple of missing entries to syntax_check_exceptions for distribution. * cfg.mk: Add a rule to ensure the syntax_check_exceptions list stays in sync with the .x-sc_* files in the repository.
-rw-r--r--Makefile.am2
-rw-r--r--cfg.mk12
2 files changed, 14 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 7670cd650..97be46a11 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -40,6 +40,7 @@ changelog_etc = \
syntax_check_exceptions = \
.x-sc_GPL_version \
+ .x-sc_error_message_uppercase \
.x-sc_file_system \
.x-sc_obsolete_symbols \
.x-sc_po_check \
@@ -48,6 +49,7 @@ syntax_check_exceptions = \
.x-sc_prohibit_stat_st_blocks \
.x-sc_prohibit_strcmp \
.x-sc_require_config_h \
+ .x-sc_require_config_h_first \
.x-sc_space_tab \
.x-sc_sun_os_names \
.x-sc_trailing_blank \
diff --git a/cfg.mk b/cfg.mk
index 393d4cbb3..d3ec9de02 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -99,6 +99,18 @@ sc_root_tests:
exit 1; } || :; \
fi
+# Ensure that the syntax_check_exceptions file list in Makefile.am
+# stays in sync with corresponding files in the repository.
+sce = syntax_check_exceptions
+sc_x_sc_dist_check:
+ @test "$$( ($(VC_LIST) | sed -n '/^.x-sc_/p'; \
+ sed -n '/^$(sce) =[ ]*\\$$/,/[^\]$$/p' \
+ $(srcdir)/Makefile.am \
+ | sed 's/^ *//;/^$(sce) =/d' \
+ | tr -s '\012\\' ' ' | fmt -1 \
+ ) | sort | uniq -u)" \
+ && { echo 'Makefile.am: $(sce) mismatch' >&2; exit 1; } || :;
+
headers_with_interesting_macro_defs = \
exit.h \
fcntl_.h \