@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 ; \
# (don't care about other unixes for now, it's enough if it works on one of
# the linux build bots; we assume .so )
check-exports:
- fail=0 ; \
+ @fail=0 ; \
for l in $(win32defs); do \
libbase=`basename "$$l" ".def"`; \
libso=`find "$(top_builddir)" -name "$$libbase-@GST_MAJORMINOR@.so" | grep -v /_build/ | head -n1`; \
fi; \
exit $$fail
+# complain about nonportable printf format strings (%lld, %llu, %zu etc.)
+check-nonportable-print-format:
+ @fail=0 ; \
+ loc=`find "$(top_srcdir)" -name '*.c' | xargs grep -n -e '%[0-9]*ll[udx]' -e '%[0-9]*z[udx]'`; \
+ if test "x$$loc" != "x"; then \
+ echo "Please fix the following print format strings:" ; \
+ find "$(top_srcdir)" -name '*.c' | xargs grep -n -e '%[0-9]*ll[udx]' -e '%[0-9]*z[udx]'; \
+ fail=1; \
+ fi; \
+ exit $$fail
dist-hook: check-exports win32-check-crlf