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
atlas
please-install
Commits
4ca5a066
Commit
4ca5a066
authored
Jul 25, 2018
by
Guillaume DOLLÉ
Browse files
fix cling script
parent
d4f24ea7
Changes
2
Hide whitespace changes
Inline
Side-by-side
cling/install.sh
View file @
4ca5a066
...
...
@@ -8,6 +8,7 @@ LIB_NAME="cling"
LIB_VERSION
=
0.4.0
GCC_VERSION
=
6.4.0
CMAKE_VERSION
=
3.9.2
MODULE_CATEGORY
=
"compilers"
# Use cern repository! (patched version)
LLVM_REPOSITORY
=
http://root.cern.ch/git/llvm.git
...
...
@@ -28,7 +29,7 @@ DEPEND_MODULE_GCC=gcc${GCC_VERSION_MAJOR}${GCC_VERSION_MINOR}${GCC_VERSION_PATCH
SOURCE_DIR
=
${
BASE_WORK_DIR
}
/
${
LIB_NAME
}
/
${
LIB_VERSION
}
/
${
DEPEND_GCC
}
BUILD_DIR
=
${
PREBUILD_DIR
}
/
${
LIB_NAME
}
/
${
LIB_VERSION
}
/
${
DEPEND_GCC
}
/build
INSTALL_DIR
=
${
BASE_INSTALL_DIR
}
/
${
LIB_NAME
}
/
${
LIB_VERSION
}
/
${
DEPEND_GCC
}
MODULE_DIR
=
${
BASE_MODULE_DIR
}
/
compilers
/
${
LIB_NAME
}
MODULE_DIR
=
${
BASE_MODULE_DIR
}
/
${
MODULE_CATEGORY
}
/
${
LIB_NAME
}
MODULE_PATH
=
${
MODULE_DIR
}
/
${
LIB_VERSION
}
_
${
DEPEND_MODULE_GCC
}
...
...
@@ -75,7 +76,7 @@ build_lib() {
fi
module purge
module load gcc/
${
GCC_VERSION
}
module load cmake/
${
CMAKE_VERSION
}
_
${
GCC_VERSION_MAJOR
}${
GCC_VERSION_MINOR
}${
GCC_VERSION_PATCH
}
module load cmake/
${
CMAKE_VERSION
}
_
gcc
${
GCC_VERSION_MAJOR
}${
GCC_VERSION_MINOR
}${
GCC_VERSION_PATCH
}
module list
# Check gcc version here
...
...
@@ -107,6 +108,7 @@ install_module()
export
LIB_NAME
export
LIB_VERSION
export
INSTALL_DIR
export
MODULE_CATEGORY
envtpl
--keep-template
-o
$MODULE_PATH
module.tmpl
}
...
...
cling/module.tmpl
View file @
4ca5a066
...
...
@@ -5,7 +5,7 @@
proc ModulesHelp { } {
global version prefix
puts stderr "\t
compilers
/{{ LIB_NAME }}/{{ LIB_VERSION }} - loads {{ LIB_NAME }} {{ LIB_VERSION }} and its environment"
puts stderr "\t
{{ MODULE_CATEGORY }}
/{{ LIB_NAME }}/{{ LIB_VERSION }} - loads {{ LIB_NAME }} {{ LIB_VERSION }} and its environment"
}
module-whatis "Loads {{ LIB_NAME }} {{ LIB_VERSION }} and its environment"
...
...
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