Gentoo Archives: gentoo-commits

From: Horea Christian <horea.christ@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: scripts/
Date: Fri, 11 Jan 2019 10:57:26
Message-Id: 1547204065.b32dcf129e8e30e28dd78ba1faebd135ea217100.chymera@gentoo
commit:     b32dcf129e8e30e28dd78ba1faebd135ea217100
Author:     Horea Christian <horea.christ <AT> yandex <DOT> com>
AuthorDate: Fri Jan 11 10:50:48 2019 +0000
Commit:     Horea Christian <horea.christ <AT> gmail <DOT> com>
CommitDate: Fri Jan 11 10:54:25 2019 +0000

Checking for and creating config dir if needed

and improved comment style and grammar

Signed-off-by: Horea Christian <horea.christ <AT>>

 scripts/ | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/scripts/ b/scripts/
index 2e6624ada..cd932c130 100755
--- a/scripts/
+++ b/scripts/
@@ -3,11 +3,14 @@ set -e
-#Link to the workaroud we reproduce in this section :
+#Link to the workaround automated by this script:
 #Efforts to more permanently address the issue:
 echo ""
 echo "Setting Up Eselect for Gentoo Science:"
 echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
+if [ ! -d ${EPREFIX}/etc/portage/package.mask/ ]; then
+	mkdir -p ${EPREFIX}/etc/portage/package.mask/;
 cp "sci-lapack" "${EPREFIX}/etc/portage/package.mask/"
 emerge --oneshot --verbose dev-util/cmake >> /dev/null
 emerge --oneshot --verbose app-admin/eselect::science >> /dev/null