ref: d6fd2293ead0bf9831adcc9ea2b6b7c085482491
parent: 23fbef216dc20de461c1621e963fd8adba80c618
author: James Zern <[email protected]>
date: Tue Jul 29 16:43:56 EDT 2014
make testdata: look for other variants of sha1sum it's shasum / sha1 on osx, bsd variants Change-Id: I3513ae1740adfb05e9b5777d27d445dafbd22413
--- a/libs.mk
+++ b/libs.mk
@@ -409,13 +409,16 @@
curl -L -o $@ $(call libvpx_test_data_url,$(@F))
testdata:: $(LIBVPX_TEST_DATA)
- $(qexec)if [ -x "$$(which sha1sum)" ]; then\
+ $(qexec)[ -x "$$(which sha1sum)" ] && sha1sum=sha1sum;\
+ [ -x "$$(which shasum)" ] && sha1sum=shasum;\
+ [ -x "$$(which sha1)" ] && sha1sum=sha1;\
+ if [ -n "$${sha1sum}" ]; then\
set -e;\
echo "Checking test data:";\
if [ -n "$(LIBVPX_TEST_DATA)" ]; then\
for f in $(call enabled,LIBVPX_TEST_DATA); do\
grep $$f $(SRC_PATH_BARE)/test/test-data.sha1 |\
- (cd $(LIBVPX_TEST_DATA_PATH); sha1sum -c);\
+ (cd $(LIBVPX_TEST_DATA_PATH); $${sha1sum} -c);\
done; \
fi; \
else\