Skip to content

Commit 48d7eee

Browse files
author
Damian Rouson
committed
Merge download-only-option into capture-build-w...
2 parents b54f3d3 + 48717bb commit 48d7eee

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

install.sh-usage

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
-b --install-branch [arg] Install the specified repository development branch.
22
-B --list-branches [arg] List the available branches in the specified package's repository.
3-
-c --with-c [arg] Use specified C compiler.
4-
-C --with-cxx [arg] Use specified C++ compiler.
3+
-c --with-c [arg] Use specified C compiler.
4+
-C --with-cxx [arg] Use specified C++ compiler.
55
-d --debug Enable debug mode.
66
-D --print-downloader [arg] Print download program for package specified in argument.
77
-e --verbose Enable verbose mode, print script as it is executed.
8-
-f --with-fortran [arg] Use specified Fortran compiler.
8+
-f --with-fortran [arg] Use specified Fortran compiler.
99
-h --help Print this page.
1010
-i --install-prefix [arg] Install package in specified path. Default="${OPENCOARRAYS_SRC_DIR}/prerequisites/installations/${package_name:-}/${version_to_build:-}"
1111
-I --install-version [arg] Install package version.
@@ -14,6 +14,7 @@
1414
-m --with-cmake [arg] Use specified CMake installation. Default="cmake"
1515
-M --with-mpi [arg] Use specified MPI installation.
1616
-n --no-color Disable color output.
17+
-o --only-download Download (without building) the source for the package specified by -p or --package.
1718
-p --package [arg] Install specified package. Default="opencoarrays"
1819
-P --print-path [arg] Print installation directory for specified package.
1920
-U --print-url [arg] Print download location for specified package.

prerequisites/build.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,12 @@ fi
141141
source "${OPENCOARRAYS_SRC_DIR:-}/prerequisites/build-functions/download_if_necessary.sh"
142142
download_if_necessary
143143

144+
# Exit if -o or --only-download was specified when invoking this script
145+
if [[ ${arg_o:-} == "${__flag_present}" ]]; then
146+
info "No installation to perform: -o or --only-download specified. Exiting."
147+
exit 0
148+
fi
149+
144150
if [[ -z "${arg_B}" ]]; then
145151
# shellcheck source=./build-functions/unpack_if_necessary.sh
146152
source "${OPENCOARRAYS_SRC_DIR:-}/prerequisites/build-functions/unpack_if_necessary.sh"

prerequisites/build.sh-usage

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
-m --with-cmake [arg] Use the specified CMake installation. Default="cmake"
1515
-M --with-mpi [arg] Use the specified MPI installation.
1616
-n --no-color Disable color output.
17+
-o --only-download Download (without building) the package source specified by -p or --package.
1718
-p --package [arg] Package to install.
1819
-P --print-path [arg] Print installation path for package specified in argument.
1920
-t --with-tau [arg] Use the specified TAU parallel performance utilities installation. Default="tauf90"

0 commit comments

Comments
 (0)