From 524a86e4f5a2cf1145c18187d4158aec48c87640 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A1draig=20Brady?= Date: Sun, 17 May 2015 10:51:15 +0100 Subject: build: avoid issues with case insensitive file systems * cfg.mk (sc_case_insensitive_file_names): A new syntax-check rule. * tests/tail-2/descriptor-vs-rename.sh: Rename from tests/tail-2/f-vs-rename.sh * tests/local.mk: Reference the renamed test. Reported by Jim Meyering. --- cfg.mk | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cfg.mk') diff --git a/cfg.mk b/cfg.mk index 852685353..8a5483eb6 100644 --- a/cfg.mk +++ b/cfg.mk @@ -308,6 +308,12 @@ check-programs-vs-x: done; \ exit $$status +# Ensure we can check out on case insensitive file systems +sc_case_insensitive_file_names: src/uniq + @git ls-files | sort -f | src/uniq -Di | grep . && \ + { echo "$(ME): the above file(s) conflict on case insensitive" \ + " file systems" 1>&2; exit 1; } || : + # Ensure that the end of each release's section is marked by two empty lines. sc_NEWS_two_empty_lines: @sed -n 4,/Noteworthy/p $(srcdir)/NEWS \ -- cgit v1.2.1