summaryrefslogtreecommitdiff
path: root/cfg.mk
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2015-05-17 10:51:15 +0100
committerPádraig Brady <P@draigBrady.com>2015-05-17 15:50:27 +0100
commit524a86e4f5a2cf1145c18187d4158aec48c87640 (patch)
tree300f127bcb47ef2d290de388098f11f0f6879a19 /cfg.mk
parent99dfd5a6616cbda93d1c8c917aa3158d8b82c25b (diff)
downloadcoreutils-524a86e4f5a2cf1145c18187d4158aec48c87640.tar.xz
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.
Diffstat (limited to 'cfg.mk')
-rw-r--r--cfg.mk6
1 files changed, 6 insertions, 0 deletions
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 \