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'
This commit is contained in:
Thomas Bernard 2019-03-08 00:01:49 +01:00
parent 94ce9e4ac8
commit 46dd2a2ea9
No known key found for this signature in database
GPG Key ID: 0FF11B67A5C0863C

4
3rdparty/Makefile vendored
View File

@ -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