]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: run strftime syntax check on newer systems
authorPádraig Brady <P@draigBrady.com>
Tue, 18 Nov 2014 03:29:07 +0000 (03:29 +0000)
committerPádraig Brady <P@draigBrady.com>
Tue, 18 Nov 2014 03:38:29 +0000 (03:38 +0000)
* cfg.mk (sc_strftime_check): Adjust regex to handle
newer glibc info formatting with different indentation
and quoting.

cfg.mk

diff --git a/cfg.mk b/cfg.mk
index 4bc379219180fe2e317e1f11bcf476a14e5c96eb..7347322652eeb09cf18fe529e0e27d920c4febf6 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -336,8 +336,8 @@ sc_strftime_check:
          grep '^  %.  ' $(srcdir)/src/date.c | sort                    \
            | $(extract_char) > $@-src;                                 \
          { echo N;                                                     \
-           info libc date calendar format 2>/dev/null|grep '^    `%.'\'\
-             | $(extract_char); } | sort > $@-info;                    \
+           info libc date calendar format 2>/dev/null                  \
+             | grep "^ *['\`]%.'$$"| $(extract_char); }| sort >$@-info;\
          if test $$(stat --format %s $@-info) != 2; then               \
            diff -u $@-src $@-info || exit 1;                           \
          else                                                          \