3rdparties/software/cl+ssl-20200427-git/test/run-on-many-lisps-and-openssls/openssl-releases/fetch.sh (845 bytes)
1 #!/bin/sh 2 cd "$(dirname "$0")" 3 4 mkdir src 5 cd src 6 7 VERSIONS="$1" 8 if [ -z "$VERSIONS" ] 9 then 10 VERSIONS="openssl-0.9.8zh openssl-1.0.0s openssl-1.0.2q openssl-1.1.0j openssl-1.1.1a libressl-2.2.7 libressl-2.5.5 libressl-2.6.5 libressl-2.8.3 libressl-3.0.1" 11 fi 12 13 downloadUrl() { 14 version="$1" 15 case $version in 16 libressl*) 17 echo "https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/${version}.tar.gz";; 18 openssl-1.0.2q|openssl-1.1.0j|openssl-1.1.1a) 19 echo "https://www.openssl.org/source/${version}.tar.gz";; 20 openssl-1.0.0s) 21 echo "https://www.openssl.org/source/old/1.0.0/openssl-1.0.0s.tar.gz";; 22 openssl-0.9.8zh) 23 echo "https://www.openssl.org/source/old/0.9.x/openssl-0.9.8zh.tar.gz";; 24 esac 25 } 26 27 for version in $VERSIONS 28 do 29 wget $(downloadUrl "$version") 30 tar -xzf "${version}.tar.gz" 31 done