From c158ff4327dcac981bc4421e14decdf68963115d Mon Sep 17 00:00:00 2001 From: Jose Gracia Date: Wed, 13 Nov 2024 11:32:20 +0100 Subject: [PATCH] Release environment script uses dependencies in local filesystem --- hlrs-plumbing/scripts/xx_create_release_env.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/hlrs-plumbing/scripts/xx_create_release_env.sh b/hlrs-plumbing/scripts/xx_create_release_env.sh index 5e566b3..3f0a4f2 100755 --- a/hlrs-plumbing/scripts/xx_create_release_env.sh +++ b/hlrs-plumbing/scripts/xx_create_release_env.sh @@ -55,13 +55,12 @@ HLRS_SOFTWARE_STACK_RELEASE_VERSION__USER=$(canonize_tag $arg_tag) HLRS_OPT_PREFIX__USER=$(create_dir $arg_prefix) # Define various repo locations -_HLRS_SPACK_PLUMBING_REPO=file://$HOME/spack-test/dummy_repo/release_root.git +_HLRS_SPACK_PLUMBING=$(dirname $(dirname $0)) # bootstrap environment variables -# (using [bash process substitution](https://tldp.org/LDP/abs/html/process-sub.html)) -source <(curl $_HLRS_SPACK_PLUMBING_REPO/hlrs-plumbing/envs/00_base_prefix.env) -source <(curl $_HLRS_SPACK_PLUMBING_REPO/hlrs-plumbing/envs/01_release_root.env) -source <(curl $_HLRS_SPACK_PLUMBING_REPO/hlrs-plumbing/envs/02_hlrs_spack_root.env) +source $_HLRS_SPACK_PLUMBING/envs/00_base_prefix.env +source $_HLRS_SPACK_PLUMBING/envs/01_release_root.env +source $_HLRS_SPACK_PLUMBING/envs/02_hlrs_spack_root.env # destination for output script destination=$HLRS_SOFTWARE_STACK_RELEASE_ROOT/setup-release-variables.env @@ -74,3 +73,7 @@ echo "export HLRS_SOFTWARE_STACK_HLRS_SPACK_ROOT=${HLRS_SOFTWARE_STACK_HLRS_SPAC echo "export HLRS_SOFTWARE_STACK_SPACK_INSTALL_TREE=${HLRS_SOFTWARE_STACK_SPACK_INSTALL_TREE}" >> $destination echo "export HLRS_SOFTWARE_STACK_RELEASE_VERSION=${HLRS_SOFTWARE_STACK_RELEASE_VERSION}" >> $destination echo "export HLRS_SOFTWARE_STACK_RELEASE_ROOT=${HLRS_SOFTWARE_STACK_RELEASE_ROOT}" >> $destination + +# report back to user +echo "### Done" +echo "### $destination" \ No newline at end of file