Index: source/libvpx/libs.mk |
=================================================================== |
--- source/libvpx/libs.mk (revision 290053) |
+++ source/libvpx/libs.mk (working copy) |
@@ -409,12 +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\ |