From 46dd2a2ea9e6c7fc32e578e4c11227d61522d64f Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Fri, 8 Mar 2019 00:01:49 +0100 Subject: [PATCH] 3rdparty: allow shasum or openssl command to have space to fix : /usr/bin/sh: command substitution: line 0: syntax error near unexpected token `(' /usr/bin/sh: command substitution: line 0: `(/c/Program Files (x86)/Subversion/bin/openssl sha256 -hex | sed 's/^.* //') < archives/libpng-1.6.36.tar.gz' --- 3rdparty/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/3rdparty/Makefile b/3rdparty/Makefile index 34521df5..31b32326 100644 --- a/3rdparty/Makefile +++ b/3rdparty/Makefile @@ -126,9 +126,9 @@ MKDIR = mkdir -p CP = cp -v TAR = $(shell which tar) SHA256CMD = $(shell SHASUM=`which shasum` ; if [ "$$?" = "0" ] && [ -x "$$SHASUM" ] ; \ - then echo "($$SHASUM -a 256 | cut -f1 -d' ')" ; \ + then echo "(\"$$SHASUM\" -a 256 | cut -f1 -d' ')" ; \ else OPENSSL=`which openssl` ; if [ "$$?" = "0" ] && [ -x "$$OPENSSL" ] ; \ - then echo "($$OPENSSL sha256 -hex | sed 's/^.* //')" ; \ + then echo "(\"$$OPENSSL\" sha256 -hex | sed 's/^.* //')" ; \ else echo "echo 'WARNING: no sha256 digest tool' >&2 ; echo $(SHA256)" ; \ fi ; fi ) # you need either wget or curl to download the files