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
This commit is contained in:
Pádraig Brady committed 2011-06-19 11:49:57 +01:00
1 parent c8392b368e
commit 24b3c8b160
1 file changed
+5 -1
+5 -1
View File
@@ -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