Apparently only GNU file differentiates between text files with different
line ending styles, so this test breaks on Solaris. Use a small perl
fragment instead.
@echo Checking win32 files for CR LF line endings ...; \
fail=0 ; \
for each in $(win32crlf) ; do \
- if ! (file $$each | grep CRLF >/dev/null) ; then \
+ result=`perl -e 'print grep(/\r\n/,<>)' "$$each" | wc -l`; \
+ if test "$$result" = 0 ; then \
echo $$each must be fixed to have CRLF line endings ; \
fail=1; \
fi ; \