summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-08-15 06:52:34 +0000
committerJim Meyering <jim@meyering.net>2003-08-15 06:52:34 +0000
commita38f52d85516c44c6d8d6ce243a2d9817c5cfebf (patch)
tree1c1cc4e9cccb07cbf3dabd719c4c54c3b58740ed /man
parent9b0f2e56afcd3cba247026c1ed63b60a253fe6e3 (diff)
downloadcoreutils-a38f52d85516c44c6d8d6ce243a2d9817c5cfebf.tar.xz
(ASSORT): New var.
(check-x-vs-1, programs): Use it.
Diffstat (limited to 'man')
-rw-r--r--man/Makefile.am11
1 files changed, 8 insertions, 3 deletions
diff --git a/man/Makefile.am b/man/Makefile.am
index f40cb3640..e9ac583a2 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -135,21 +135,26 @@ mapped_name = `echo $*|sed 's/install/ginstall/; s/test/[/'`
check-local: check-x-vs-1 check-programs-vs-x
+# Sort in traditional ASCII order, regardless of the current locale;
+# otherwise we may get into trouble with distinct strings that the
+# current locale considers to be equal.
+ASSORT = LC_ALL=C sort
+
# Ensure that for each .x file in this directory, there is a
# corresponding .1 file in the definition of $(dist_man_MANS) above.
.PHONY: check-x-vs-1
check-x-vs-1:
PATH=../src$(PATH_SEPARATOR)$$PATH; export PATH; \
t=ls-files.$$$$; \
- (cd $(srcdir) && ls -1 *.x) | sed 's/\.x$$//' | sort > $$t; \
- echo $(dist_man_MANS) | fmt -w1 | sed 's/\.1$$//' | sort -u \
+ (cd $(srcdir) && ls -1 *.x) | sed 's/\.x$$//' | $(ASSORT) > $$t;\
+ echo $(dist_man_MANS) | fmt -w1 | sed 's/\.1$$//' | $(ASSORT) \
| diff - $$t || { rm $$t; exit 1; }; \
rm $$t
programs = \
echo 'spy:;@echo $$(all_programs)' \
| MAKEFLAGS= $(MAKE) -s -C $(srcdir)/../src -f Makefile -f - spy \
- | fmt -1 | sort -u | grep -v '\['
+ | fmt -1 | $(ASSORT) -u | grep -v '\['
.PHONY: check-programs-vs-x
check-programs-vs-x: