Skip to content

Commit

Permalink
Merge pull request #772 from keithc-ca/openssl_source
Browse files Browse the repository at this point in the history
Temporarily restore support for old openssl options
  • Loading branch information
pshipton committed Apr 29, 2024
2 parents b4574cc + dff2e36 commit d19b5c8
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions get_source.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,31 @@ process_options() {
local version=""

for arg in "$@" ; do
# temporarily handle openssl options that don't follow the general pattern
case "$arg" in
--openssl-repo=*)
# remove leading '-'
arg="${arg/--/-}"
;;
--openssl-version=*)
# map to -openssl-branch
version="${arg#*=}"
case "$version" in
1.0.2* | 1.1.*)
version="OpenSSL_${version//./_}"
;;
3.*)
version="openssl-$version"
;;
*)
;;
esac
arg=-openssl-branch=$version
;;
*)
;;
esac

if [[ "$arg" =~ -([A-Za-z0-9]+)-(branch|reference|repo|sha)=.* ]] ; then
local key="${BASH_REMATCH[1]}"
if [ -z "${source_folder[${key}]}" ] ; then
Expand Down

0 comments on commit d19b5c8

Please sign in to comment.