Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Praetorius, Simon
dune-easybuild
Commits
a8806696
Commit
a8806696
authored
Aug 14, 2018
by
Praetorius, Simon
Browse files
Update duneeasyconfig.sh
parent
ce230357
Changes
1
Show whitespace changes
Inline
Side-by-side
tools/duneeasyconfig.sh
View file @
a8806696
#!/bin/bash
echo
"number of arguments = $#"
if
[[
$#
-ne
3
]]
;
then
if
[[
$#
-ne
2
]]
;
then
echo
"usage:
$0
dune-module (core|staging|extensions|...)"
fi
DIR
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
/.."
>
/dev/null
&&
pwd
)
"
MODULE
=
$1
GROUP
=
$2
TOOLCHAIN
=
"foss"
TOOLCHAIN_VERSION
=
"2018a"
OUT_DIR
=
"
${
HOME
}
/easyconfigs/dune"
mkdir
-p
${
OUT_
DIR
}
/d/
${
MODULE
}
OUT_DIR
=
${
DIR
}
/modules
mkdir
-p
${
DIR
}
/d/
${
MODULE
}
GIT_REPO
=
"https://gitlab.dune-project.org/
${
GROUP
}
/
${
MODULE
}
.git"
GIT_DIR
=
"/tmp/
${
USER
}
/dune/
${
GROUP
}
/
${
MODULE
}
"
...
...
@@ -34,7 +35,7 @@ do
DEPENDENCIES+
=
" ('
${
DEP_NAMES
[
$index
]
}
', '
${
DEP_VERS
[
$index
]
}
'),"
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"
cat
>
${
EASYCONFIG
}
<<
EOL
...
...
@@ -69,6 +70,7 @@ EOL
module unload git
module load EasyBuild
eb
${
EASYCONFIG
}
--moduleclasses
=
dune
--robot
=
.
--inject-checksums
cd
${
DIR
}
eb
${
EASYCONFIG
}
--moduleclasses
=
dune
--robot
=
external/:modules/
--inject-checksums
rm
${
EASYCONFIG
}
.bak_
*
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment