Commit a8806696 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

Update duneeasyconfig.sh

parent ce230357
#!/bin/bash #!/bin/bash
echo "number of arguments = $#" if [[ $# -ne 2 ]]; then
if [[ $# -ne 3 ]]; then
echo "usage: $0 dune-module (core|staging|extensions|...)" echo "usage: $0 dune-module (core|staging|extensions|...)"
fi fi
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." >/dev/null && pwd )"
MODULE=$1 MODULE=$1
GROUP=$2 GROUP=$2
TOOLCHAIN="foss" TOOLCHAIN="foss"
TOOLCHAIN_VERSION="2018a" TOOLCHAIN_VERSION="2018a"
OUT_DIR="${HOME}/easyconfigs/dune" OUT_DIR=${DIR}/modules
mkdir -p ${OUT_DIR}/d/${MODULE} mkdir -p ${DIR}/d/${MODULE}
GIT_REPO="https://gitlab.dune-project.org/${GROUP}/${MODULE}.git" GIT_REPO="https://gitlab.dune-project.org/${GROUP}/${MODULE}.git"
GIT_DIR="/tmp/${USER}/dune/${GROUP}/${MODULE}" GIT_DIR="/tmp/${USER}/dune/${GROUP}/${MODULE}"
...@@ -34,7 +35,7 @@ do ...@@ -34,7 +35,7 @@ do
DEPENDENCIES+=" ('${DEP_NAMES[$index]}', '${DEP_VERS[$index]}')," DEPENDENCIES+=" ('${DEP_NAMES[$index]}', '${DEP_VERS[$index]}'),"
done done
git archive --format=tar.gz --prefix=${MODULE}-v${VERSION}/ HEAD > ${OUT_DIR}/d/${MODULE}/${MODULE}-v${VERSION}.tar.gz git archive --format=tar.gz --prefix=${MODULE}-v${VERSION}/ HEAD > ${DIR}/d/${MODULE}/${MODULE}-v${VERSION}.tar.gz
EASYCONFIG="${OUT_DIR}/${MODULE}-${VERSION}-${TOOLCHAIN}-${TOOLCHAIN_VERSION}.eb" EASYCONFIG="${OUT_DIR}/${MODULE}-${VERSION}-${TOOLCHAIN}-${TOOLCHAIN_VERSION}.eb"
cat >${EASYCONFIG} <<EOL cat >${EASYCONFIG} <<EOL
...@@ -69,6 +70,7 @@ EOL ...@@ -69,6 +70,7 @@ EOL
module unload git module unload git
module load EasyBuild module load EasyBuild
eb ${EASYCONFIG} --moduleclasses=dune --robot=. --inject-checksums cd ${DIR}
eb ${EASYCONFIG} --moduleclasses=dune --robot=external/:modules/ --inject-checksums
rm ${EASYCONFIG}.bak_* rm ${EASYCONFIG}.bak_*
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment