aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichaelJGilroy <michael.gilroy24@gmail.com>2017-06-16 13:41:24 -0600
committerMichaelJGilroy <michael.gilroy24@gmail.com>2017-06-16 13:41:24 -0600
commitdee1ddfb028c0b89f29affdb4a0bfddf76e59ec5 (patch)
tree59976afb428a0a59e19964dc3eb8844065c9b39d
parentrepository reorganization (diff)
downloadgentoo-mpi-dee1ddfb028c0b89f29affdb4a0bfddf76e59ec5.tar.gz
gentoo-mpi-dee1ddfb028c0b89f29affdb4a0bfddf76e59ec5.tar.bz2
gentoo-mpi-dee1ddfb028c0b89f29affdb4a0bfddf76e59ec5.zip
reformatting and refactoring
- "find" statement in mpi-providers - function syntax in mpi-select
-rw-r--r--eclass/mpi-providers.eclass2
-rw-r--r--eclass/mpi-select.eclass14
2 files changed, 10 insertions, 6 deletions
diff --git a/eclass/mpi-providers.eclass b/eclass/mpi-providers.eclass
index 6277541..bb7207d 100644
--- a/eclass/mpi-providers.eclass
+++ b/eclass/mpi-providers.eclass
@@ -35,7 +35,7 @@ mpi-providers_safe_mv() {
mv "${T}/DOCS" "${ED}/usr/share/doc" ||die "mv failed"
cd "${mpi_root}/etc"
- find -O3 -mindepth 1 -maxdepth 1 ! -path "./${PF}*" -execdir cp -a -t "${PF}" '{}' \+
+ find -O3 -mindepth 1 -maxdepth 1 ! -path "./${PF}*" -execdir cp -a -t "${PF}" '{}' \; || die "find failed"
}
diff --git a/eclass/mpi-select.eclass b/eclass/mpi-select.eclass
index 9a0e467..ce34f7f 100644
--- a/eclass/mpi-select.eclass
+++ b/eclass/mpi-select.eclass
@@ -50,7 +50,8 @@ mpi-select_implementation_install (){
# @ECLASS-FUNCTION: mpi-select_detect_installs
# @DESCRIPTION:
# See what MPI software is installed on the system
-mpi-select_detect_installs (){
+mpi-select_detect_installs()
+{
for dir in "${MPI_DIR}"/*
do
INSTALLED_IMPLEMENTATIONS="${INSTALLED_IMPLEMENTATIONS} ${dir}"
@@ -59,25 +60,28 @@ mpi-select_detect_installs (){
echo "${INSTALLED_IMPLEMENTATIONS}"
}
-mpi-select_src_configure (){
+mpi-select_src_configure()
+{
case "${1}" in
# cases based on implementation
esac
}
-mpi-select_src_compile (){
+mpi-select_src_compile ()
+{
case "${1}" in
# cases based on implementation
esac
}
-mpi-select_src_test (){
+mpi-select_src_test()
+{
case "${1}" in
# cases based on implementation
esac
}
-mpi-select_src_install (){
+mpi-select_src_install(){
case "${1}" in
# cases based on implementation
esac