summaryrefslogtreecommitdiff
path: root/cfg.mk
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2011-06-18 18:58:44 +0100
committerPádraig Brady <P@draigBrady.com>2011-06-19 11:49:57 +0100
commit24b3c8b160e44305359c121e88c731b0366ad210 (patch)
tree2496f14aa04e73e156df31591cb42d7523c70c96 /cfg.mk
parentc8392b368e33ed286dd00bf0c66bbae462513d61 (diff)
downloadcoreutils-24b3c8b160e44305359c121e88c731b0366ad210.tar.xz
maint: avoid a false positive syntax check
* cfg.mk (sc_strftime_check): Skip the check when there is no info to compare against. Reported by Stefano Lattarini
Diffstat (limited to 'cfg.mk')
-rw-r--r--cfg.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/cfg.mk b/cfg.mk
index 6c8acaa55..8a0dc9f70 100644
--- 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