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:
		
							parent
							
								
									94ce9e4ac8
								
							
						
					
					
						commit
						46dd2a2ea9
					
				
							
								
								
									
										4
									
								
								3rdparty/Makefile
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								3rdparty/Makefile
									
									
									
									
										vendored
									
									
								
							@ -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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user