diff options
author | Pádraig Brady <P@draigBrady.com> | 2011-06-18 18:58:44 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2011-06-19 11:49:57 +0100 |
commit | 24b3c8b160e44305359c121e88c731b0366ad210 (patch) | |
tree | 2496f14aa04e73e156df31591cb42d7523c70c96 | |
parent | c8392b368e33ed286dd00bf0c66bbae462513d61 (diff) | |
download | coreutils-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
-rw-r--r-- | cfg.mk | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |