diff --git a/EESSI-install-software.sh b/EESSI-install-software.sh index 3a9ba175c9..83bd21adb9 100755 --- a/EESSI-install-software.sh +++ b/EESSI-install-software.sh @@ -9,6 +9,7 @@ display_help() { echo "usage: $0 [OPTIONS]" echo " --build-logs-dir - location to copy EasyBuild logs to for failed builds" + echo " --easystacks - comma-separated list of easystack files" echo " -g | --generic - instructs script to build for generic architecture target" echo " -h | --help - display this usage information" echo " -x | --http-proxy URL - provides URL for the environment variable http_proxy" @@ -57,6 +58,10 @@ POSITIONAL_ARGS=() while [[ $# -gt 0 ]]; do case $1 in + --easystacks) + export arg_easystacks="${2}" + shift 2 + ;; -g|--generic) EASYBUILD_OPTARCH="GENERIC" shift @@ -305,12 +310,17 @@ else echo_green ">> MODULEPATH set up: ${MODULEPATH}" fi -# assume there's only one diff file that corresponds to the PR patch file -pr_diff=$(ls [0-9]*.diff | head -1) +if [ -z ${arg_easystacks} ]; then + # assume there's only one diff file that corresponds to the PR patch file + pr_diff=$(ls [0-9]*.diff | head -1) + + # use PR patch file to determine in which easystack files stuff was added + changed_easystacks=$(cat ${pr_diff} | grep '^+++' | cut -f2 -d' ' | sed 's@^[a-z]/@@g' | grep 'easystacks/.*yml$' | egrep -v 'known-issues|missing') +else + changed_easystacks=$(echo "${arg_easystacks}" | tr ',' '\n') +fi -# use PR patch file to determine in which easystack files stuff was added -changed_easystacks=$(cat ${pr_diff} | grep '^+++' | cut -f2 -d' ' | sed 's@^[a-z]/@@g' | grep 'easystacks/.*yml$' | egrep -v 'known-issues|missing') if [ -z "${changed_easystacks}" ]; then echo "No missing installations, party time!" # Ensure the bot report success, as there was nothing to be build here else