Skip to content

Commit 2129302

Browse files
rousonzbeekman
authored andcommitted
Add packages in ./install.sh -l listing.
1 parent e7e7414 commit 2129302

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

install.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@
8282
### Start of boilerplate -- do not edit this block #######################
8383
export OPENCOARRAYS_SRC_DIR="${OPENCOARRAYS_SRC_DIR:-${PWD}}"
8484
if [[ ! -f "${OPENCOARRAYS_SRC_DIR}/src/libcaf.h" ]]; then
85-
echo "Please run this script inside the top-level OpenCoarrays source directory or set OPENCOARRAYS_SRC_DIR to the OpenCoarrays source directory path."
85+
echo "Please run this script inside the top-level OpenCoarrays source directory or "
86+
echo "set OPENCOARRAYS_SRC_DIR to the OpenCoarrays source directory path."
8687
exit 1
8788
fi
8889
export B3B_USE_CASE="${B3B_USE_CASE:-${OPENCOARRAYS_SRC_DIR}/prerequisites/use-case}"
@@ -245,14 +246,19 @@ if [[ "${arg_v}" == "${__flag_present}" || "${arg_V}" == "opencoarrays" ]]; then
245246

246247
elif [[ ! -z "${arg_D:-${arg_P:-${arg_U:-${arg_V}}}}" || "${arg_l}" == "${__flag_present}" ]]; then
247248

248-
# Delegate to build.sh
249+
# Delegate to build.sh for the packages it builds
249250
build_arg=${arg_D:-${arg_P:-${arg_U:-${arg_V:-${arg_p}}}}}
250251
[ ! -z "${arg_D}" ] && build_flag="-D"
251252
[ ! -z "${arg_P}" ] && build_flag="-P"
252253
[ ! -z "${arg_U}" ] && build_flag="-U"
253254
[ ! -z "${arg_V}" ] && build_flag="-V"
254255
[ "${arg_l}" == "${__flag_present}" ] && build_flag="-l"
255256
"${opencoarrays_src_dir}"/prerequisites/build.sh "${build_flag}" "${build_arg}"
257+
# Add lines other packages the current script builds
258+
if [[ "${arg_l}" == "${__flag_present}" ]]; then
259+
echo "opencoarrays (default version `${build_script} -V opencoarrays`)"
260+
echo "ofp (default version `${build_script} -V ofp`)"
261+
fi
256262

257263
elif [[ ! -z "${arg_p:-}" && "${arg_p:-}" != "opencoarrays" ]]; then
258264

0 commit comments

Comments
 (0)