Skip to content

Commit 654c39e

Browse files
committed
Temporarily restore support for old openssl options
Signed-off-by: Keith W. Campbell <[email protected]>
1 parent 01779f8 commit 654c39e

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

get_source.sh

+25
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,31 @@ process_options() {
137137
local version=""
138138

139139
for arg in "$@" ; do
140+
# temporarily handle openssl options that don't follow the general pattern
141+
case "$arg" in
142+
--openssl-repo=*)
143+
# remove leading '-'
144+
arg="${arg/--/-}"
145+
;;
146+
--openssl-version=*)
147+
# map to -openssl-branch
148+
version="${arg#*=}"
149+
case "$version" in
150+
1.0.2* | 1.1.*)
151+
version="OpenSSL_${version//./_}"
152+
;;
153+
3.*)
154+
version="openssl-$version"
155+
;;
156+
*)
157+
;;
158+
esac
159+
arg=-openssl-branch=$version
160+
;;
161+
*)
162+
;;
163+
esac
164+
140165
if [[ "$arg" =~ -([A-Za-z0-9]+)-(branch|reference|repo|sha)=.* ]] ; then
141166
local key="${BASH_REMATCH[1]}"
142167
if [ -z "${source_folder[${key}]}" ] ; then

0 commit comments

Comments
 (0)