summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-05-02 21:56:25 +0200
committerJim Meyering <meyering@redhat.com>2009-05-03 15:51:27 +0200
commit181615b22a16eba3590cd747692af2432721b703 (patch)
tree735b5a91f84a98c7d2cb9f30ded27468bbab110e
parent59e8a5e2b28561ee6fcf070b058b787a8fe247d5 (diff)
downloadcoreutils-181615b22a16eba3590cd747692af2432721b703.tar.xz
tests: correct the "make check"-run check-AUTHORS test
* src/Makefile.am (check-AUTHORS): Revert back to using en_US.UTF-8, to ease parsing (English-only) text around the list of names, even when .po files are not installed. Reported by Andreas Schwab. Along the way, use $(AM_V_GEN), not "@". (sc_tight_scope): Use $(AM_V_GEN) here, too. * gnulib: Update submodule to latest, for the proper_name_utf8 fix that makes --version output print the UTF-8 rendering of author names in more cases.
m---------gnulib0
-rw-r--r--src/Makefile.am12
2 files changed, 6 insertions, 6 deletions
diff --git a/gnulib b/gnulib
-Subproject 8d08fa04b902a9fdd504c6ceae2efb8ca650c2a
+Subproject 9ccd438ce337e6fb8c95d9261f1e06a3952261c
diff --git a/src/Makefile.am b/src/Makefile.am
index 5c09906c3..136cadac9 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -382,15 +382,15 @@ check-duplicate-no-install: tr
test -z "`echo '$(EXTRA_PROGRAMS)'| ./tr ' ' '\n' | uniq -d`"
# Ensure that the list of programs and author names is accurate.
-# We need a UTF8 locale, and any one should do, but since configure
-# already tries to find a French one, use it. It's fine to skip this test.
+# We need a UTF8 locale. If a lack of locale support or a missing
+# translation inhibits printing of UTF-8 names, just skip this test.
au_dotdot = authors-dotdot
au_actual = authors-actual
.PHONY: check-AUTHORS
check-AUTHORS: $(all_programs)
- @locale='$(LOCALE_FR_UTF8)'; \
- case "$$locale" in \
- ''|none) echo "$@: skipping this check"; exit 0;; esac; \
+ $(AM_V_GEN)LC_ALL="$$locale" ./cat --version \
+ | grep ' Torbjorn ' \
+ && { echo "$@: skipping this check"; exit 0; }; \
rm -f $(au_actual) $(au_dotdot); \
for i in `ls $(all_programs) | sed -e 's,$(EXEEXT)$$,,' \
| $(ASSORT) -u`; do \
@@ -420,7 +420,7 @@ check-AUTHORS: $(all_programs)
# The second nm|grep checks for file-scope variables with `extern' scope.
.PHONY: sc_tight_scope
sc_tight_scope: $(bin_PROGRAMS)
- @t=exceptions-$$$$; \
+ $(AM_V_GEN)t=exceptions-$$$$; \
trap "s=$$?; rm -f $$t; exit $$s" 0 1 2 13 15; \
src=`for f in $(SOURCES); do \
test -f $$f && d= || d=$(srcdir)/; echo $$d$$f; done`; \