diff options
author | MichaelJGilroy <michael.gilroy24@gmail.com> | 2017-06-02 11:05:09 -0600 |
---|---|---|
committer | MichaelJGilroy <michael.gilroy24@gmail.com> | 2017-06-02 11:05:09 -0600 |
commit | f62865b23c68c5d28c436709e03817f89a2e9037 (patch) | |
tree | dbb7dd1602adf1bd159fa4dd9d0f90e09278f23f | |
parent | got rid of get_slot function in favor of static SLOT variable (diff) | |
download | gentoo-mpi-f62865b23c68c5d28c436709e03817f89a2e9037.tar.gz gentoo-mpi-f62865b23c68c5d28c436709e03817f89a2e9037.tar.bz2 gentoo-mpi-f62865b23c68c5d28c436709e03817f89a2e9037.zip |
added initial function for safely moving final installation directory
-rw-r--r-- | eclass/mpi-providers.eclass | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/eclass/mpi-providers.eclass b/eclass/mpi-providers.eclass index 50b8f10..97a5e28 100644 --- a/eclass/mpi-providers.eclass +++ b/eclass/mpi-providers.eclass @@ -11,12 +11,17 @@ case ${EAPI:-0} in *) die "gentoo-mpi.eclass does not support EAPI ${EAPI}" esac -# @ECLASS-VARIABLE: IMPLEMENTATION_LIST -# @INTERNAL -# @DESCRIPTION: -# Every MPI Implementation -IMPLEMENTATION_LIST="mpich mpich2 openmpi lam-mpi openlib-mvapich2 hpl" - SLOT="${PVR}" export EPREFIX="${EPREFIX}/usr/lib/mpi/${PF}" + +# @ECLASS-FUNCTION: mpi-providers_safe_mv +# @USAGE: $mpi-providers_save_mv < installation directory (usually EPREFIX)> +mpi-providers_safe_mv() { + DEST="$1/usr/lib/mpi" + if [[ ! -d "$DEST" ]]; then + mkdir "$DEST" || die + fi + + mv "$1/*" "$DEST" || die +} |