File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change 5
5
#
6
6
# - Build OpenCoarrays prerequisite packages and their prerequisites
7
7
#
8
- # Usage: LOG_LEVEL=7 B3B_USE_CASE=/opt/bash3boilerplate/src/use-case ./my-script .sh -f script_input.txt
8
+ # Usage: LOG_LEVEL=7 B3B_USE_CASE=/opt/bash3boilerplate/src/use-case ./install-opfp .sh
9
9
#
10
10
# More info:
11
11
#
32
32
33
33
export __usage=" ${OPENCOARRAYS_SRC_DIR} /prerequisites/install-ofp.sh-usage"
34
34
35
- # ## Start of boilerplate -- do not edit this block #######################
35
+ export OPENCOARRAYS_SRC_DIR=" ${OPENCOARRAYS_SRC_DIR:- ${PWD} / ..} "
36
+ if [[ ! -f " ${OPENCOARRAYS_SRC_DIR} /src/libcaf.h" ]]; then
37
+ echo " Please run this script inside the OpenCoarrays " prerequisites" subdirectory "
38
+ echo " or set OPENCOARRAYS_SRC_DIR to the OpenCoarrays source directory path."
39
+ exit 1
40
+ fi
41
+
42
+ # ## Import bash3boilerplate functionality
43
+ export B3B_USE_CASE=" ${B3B_USE_CASE:- ${OPENCOARRAYS_SRC_DIR} / prerequisites/ use-case} "
36
44
if [[ ! -f " ${B3B_USE_CASE:- } /bootstrap.sh" ]]; then
37
45
echo " Please set B3B_USE_CASE to the bash3boilerplate use-case directory path."
38
- exit 1
39
- elif [[ ! -d " ${OPENCOARRAYS_SRC_DIR:- } " ]]; then
40
- echo " Please set OPENCOARRAYS_SRC_DIR to the OpenCoarrays source directory path."
41
46
exit 2
42
47
else
43
48
source " ${B3B_USE_CASE} /bootstrap.sh" " $@ "
44
49
fi
45
- # ## End of boilerplate -- start user edits below #########################
46
50
47
51
# Set up a function to call when receiving an EXIT signal to do some cleanup. Remove if
48
52
# not needed. Other signals can be trapped too, like SIGINT and SIGTERM.
You can’t perform that action at this time.
0 commit comments