mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-23 16:17:59 +02:00
32b2687936
- modulefiles must not any more in the same root directory as the software installation
26 lines
513 B
Bash
26 lines
513 B
Bash
#!/bin/bash
|
|
#
|
|
|
|
# set default version
|
|
: ${PMODULES_VERSION:=@PMODULES_VERSION@}
|
|
export PMODULES_VERSION
|
|
|
|
##### no changes below this line ######
|
|
|
|
declare __pm_root__=$(cd $(dirname "${BASH_SOURCE}")/.. && pwd)
|
|
declare -x PMODULES_HOME="${__pm_root__}/Tools/Pmodules/${PMODULES_VERSION}"
|
|
unset __pm_root__
|
|
|
|
test -r "${PMODULES_HOME}/init/bash" && source "$_"
|
|
|
|
if [[ $? != 0 ]]; then
|
|
echo "Oops: cannot initialize Pmodules!"
|
|
return 1
|
|
fi
|
|
|
|
# Local Variables:
|
|
# mode: sh
|
|
# sh-basic-offset: 8
|
|
# tab-width: 8
|
|
# End:
|