@@ -61,12 +61,12 @@ export __flag_present=1
6161if [[ " ${arg_l} " != " ${__flag_present} " &&
6262 " ${arg_v} " != " ${__flag_present} " &&
6363 " ${arg_h} " != " ${__flag_present} " &&
64- -z " ${arg_D:- ${arg_p:- ${arg_P:- ${arg_U:- ${arg_V:- ${arg_B} } } } } } " ]]; then
64+ -z " ${arg_D:- ${arg_p:- ${arg_P:- ${arg_U:- ${arg_V} } } } } " ]]; then
6565 help " ${__base} : Insufficient arguments. Please pass either -B, -D, -h, -l, -L, -p, -P, -U, -v, -V, or a longer equivalent."
6666fi
6767
6868# Suppress info and debug messages if -B, -l, -P, -U, -V, -D, or their longer equivalent is present:
69- [[ " ${arg_l} " == " ${__flag_present} " || ! -z " ${arg_P:- ${arg_U:- ${arg_V:- ${arg_D:- ${arg_B} } } } } " ]] && suppress_info_debug_messages
69+ [[ " ${arg_l} " == " ${__flag_present} " || ! -z " ${arg_P:- ${arg_U:- ${arg_V:- ${arg_D} } } } " ]] && suppress_info_debug_messages
7070
7171[ -z " ${LOG_LEVEL:- } " ] && emergency " Cannot continue without LOG_LEVEL. "
7272
@@ -88,7 +88,6 @@ info "__usage: ${__usage}"
8888info " LOG_LEVEL: ${LOG_LEVEL} "
8989
9090info " -b (--install-branch): ${arg_b} "
91- info " -B (--list-branches): ${arg_B} "
9291info " -c (--with-c): ${arg_c} "
9392info " -C (--with-cxx): ${arg_C} "
9493info " -d (--debug): ${arg_d} "
@@ -115,13 +114,11 @@ info "-y (--yes-to-all): ${arg_y} "
115114info " -Z (--bootstrap): ${arg_Z} "
116115}
117116
118- if [[ -z " ${arg_B} " ]]; then
119- # shellcheck source=./build-functions/set_or_print_default_version.sh
120- source " ${OPENCOARRAYS_SRC_DIR:- } /prerequisites/build-functions/set_or_print_default_version.sh"
121- # shellcheck disable=SC2119
122- set_or_print_default_version
123- export version_to_build=" ${arg_I:- ${arg_b:- ${default_version} } } "
124- fi
117+ # shellcheck source=./build-functions/set_or_print_default_version.sh
118+ source " ${OPENCOARRAYS_SRC_DIR:- } /prerequisites/build-functions/set_or_print_default_version.sh"
119+ # shellcheck disable=SC2119
120+ set_or_print_default_version
121+ export version_to_build=" ${arg_I:- ${arg_b:- ${default_version} } } "
125122
126123# shellcheck source=./build-functions/set_or_print_downloader.sh
127124source " ${OPENCOARRAYS_SRC_DIR:- } /prerequisites/build-functions/set_or_print_downloader.sh"
@@ -135,9 +132,7 @@ set_or_print_url
135132# shellcheck source=./build-functions/set_or_print_installation_path.sh
136133source " ${OPENCOARRAYS_SRC_DIR:- } /prerequisites/build-functions/set_or_print_installation_path.sh"
137134
138- if [[ -z " ${arg_B} " ]]; then
139- set_or_print_installation_path
140- fi
135+ set_or_print_installation_path
141136
142137# shellcheck source=./build-functions/download_if_necessary.sh
143138source " ${OPENCOARRAYS_SRC_DIR:- } /prerequisites/build-functions/download_if_necessary.sh"
@@ -159,16 +154,14 @@ else
159154 export bootstrap_build=" bootstrap"
160155fi
161156
162- if [[ -z " ${arg_B} " ]]; then
163- # shellcheck source=./build-functions/unpack_if_necessary.sh
164- source " ${OPENCOARRAYS_SRC_DIR:- } /prerequisites/build-functions/unpack_if_necessary.sh"
165- unpack_if_necessary
157+ # shellcheck source=./build-functions/unpack_if_necessary.sh
158+ source " ${OPENCOARRAYS_SRC_DIR:- } /prerequisites/build-functions/unpack_if_necessary.sh"
159+ unpack_if_necessary
166160
167- # shellcheck source=./build-functions/set_compilers.sh
168- source " ${OPENCOARRAYS_SRC_DIR:- } /prerequisites/build-functions/set_compilers.sh"
169- set_compilers
161+ # shellcheck source=./build-functions/set_compilers.sh
162+ source " ${OPENCOARRAYS_SRC_DIR:- } /prerequisites/build-functions/set_compilers.sh"
163+ set_compilers
170164
171- # shellcheck source=./build-functions/build_and_install.sh
172- source " ${OPENCOARRAYS_SRC_DIR:- } /prerequisites/build-functions/build_and_install.sh"
173- build_and_install
174- fi
165+ # shellcheck source=./build-functions/build_and_install.sh
166+ source " ${OPENCOARRAYS_SRC_DIR:- } /prerequisites/build-functions/build_and_install.sh"
167+ build_and_install
0 commit comments