]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: avoid a false positive syntax check
authorPádraig Brady <P@draigBrady.com>
Sat, 18 Jun 2011 17:58:44 +0000 (18:58 +0100)
committerPádraig Brady <P@draigBrady.com>
Sun, 19 Jun 2011 10:49:57 +0000 (11:49 +0100)
* cfg.mk (sc_strftime_check): Skip the check when there
is no info to compare against.
Reported by Stefano Lattarini

cfg.mk

diff --git a/cfg.mk b/cfg.mk
index 6c8acaa553593f0aba88486e7ba9f33e5c850ff3..8a0dc9f702503c1688e357b181e0db670845d8ab 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -205,7 +205,11 @@ sc_strftime_check:
          { echo N;                                                     \
            info libc date calendar format 2>/dev/null|grep '^    `%.'\'\
              | $(extract_char); } | sort > $@-info;                    \
-         diff -u $@-src $@-info || exit 1;                             \
+         if test $$(stat --format %s $@-info) != 2; then               \
+           diff -u $@-src $@-info || exit 1;                           \
+         else                                                          \
+           echo '$(ME): skipping $@: libc info not installed' 1>&2;    \
+         fi;                                                           \
          rm -f $@-src $@-info;                                         \
        fi