Compare commits
2 commits
8c890b97e8
...
6e8cdb6c39
Author | SHA1 | Date | |
---|---|---|---|
6e8cdb6c39 | |||
1c8f592157 |
2 changed files with 11 additions and 6 deletions
|
@ -24,7 +24,7 @@ arg_prefix=$2
|
||||||
log () {
|
log () {
|
||||||
local msg=$1
|
local msg=$1
|
||||||
if [[ -n $_VERBOSITY ]]; then
|
if [[ -n $_VERBOSITY ]]; then
|
||||||
echo $msg
|
echo "### $msg"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -55,9 +55,7 @@ HLRS_SOFTWARE_STACK_RELEASE_VERSION__USER=$(canonize_tag $arg_tag)
|
||||||
HLRS_OPT_PREFIX__USER=$(create_dir $arg_prefix)
|
HLRS_OPT_PREFIX__USER=$(create_dir $arg_prefix)
|
||||||
|
|
||||||
# Define various repo locations
|
# Define various repo locations
|
||||||
_HLRS_SPACK_REPO=file://$HOME/spack-test/dummy_repo/spack-v0.21.2.git
|
_HLRS_SPACK_PLUMBING_REPO=file://$HOME/spack-test/dummy_repo/release_root.git
|
||||||
_HLRS_SPACK_PLUMBING_REPO=file://$HOME/spack-test/dummy_repo/software-stack-plumbing.git
|
|
||||||
_HLRS_SPACK_CONFIG_REPO=
|
|
||||||
|
|
||||||
# bootstrap environment variables
|
# bootstrap environment variables
|
||||||
# (using [bash process substitution](https://tldp.org/LDP/abs/html/process-sub.html))
|
# (using [bash process substitution](https://tldp.org/LDP/abs/html/process-sub.html))
|
||||||
|
|
|
@ -83,7 +83,8 @@ _HLRS_SPACK_CONFIG_REPO=file://$HOME/spack-test/dummy_repo/hlrs-spack.git
|
||||||
|
|
||||||
# bootstrap staging area
|
# bootstrap staging area
|
||||||
log "setup staging area at:"
|
log "setup staging area at:"
|
||||||
staging_dir=$(mktemp -d)/staging
|
tmp_dir=$(mktemp -d)
|
||||||
|
staging_dir=$tmp_dir/staging
|
||||||
log " $staging_dir"
|
log " $staging_dir"
|
||||||
|
|
||||||
# bootstrap plumbing directory
|
# bootstrap plumbing directory
|
||||||
|
@ -144,4 +145,10 @@ final_release_root=$(create_dir $HLRS_SOFTWARE_STACK_RELEASE_ROOT)
|
||||||
mv $staging_release_root/{*,.git} $final_release_root
|
mv $staging_release_root/{*,.git} $final_release_root
|
||||||
|
|
||||||
|
|
||||||
## TODO: remove staging dir
|
## TODO: remove temporary dir
|
||||||
|
log "Cleaning up ..."
|
||||||
|
rm -rf $tmp_dir
|
||||||
|
|
||||||
|
## DONE!!
|
||||||
|
log "DONE populating release directory"
|
||||||
|
log " $HLRS_SOFTWARE_STACK_RELEASE_ROOT"
|
Loading…
Reference in a new issue