environment.bash.in 1.03 KB
Newer Older
1 2
#!/bin/bash

gsell's avatar
gsell committed
3
declare -x PMODULES_ROOT=$(cd $(dirname "${BASH_SOURCE}")/.. && pwd)
4 5

if [[ -z ${PMODULES_VERSION} ]]; then
6
	declare -x PMODULES_VERSION="@PMODULES_VERSION@"
7
fi
gsell's avatar
gsell committed
8 9
declare -x PMODULES_HOME="${PMODULES_ROOT}/Tools/Pmodules/${PMODULES_VERSION}"
declare -x PMODULES_DIR="${PMODULES_HOME}"
10

gsell's avatar
gsell committed
11 12 13
declare -x PMODULES_CONFIG_DIR=$(basename $(cd $(dirname "${BASH_SOURCE}") && pwd))
declare -x PMODULES_MODULEFILES_DIR='modulefiles'
declare -x PMODULES_TEMPLATES_DIR='templates'
14

gsell's avatar
gsell committed
15 16
declare -x PMODULES_DEFAULT_GROUPS='Tools Programming'
declare -x PMODULES_DEFINED_RELEASES=':unstable:stable:deprecated:'
gsell's avatar
gsell committed
17 18 19 20 21 22 23 24 25 26 27
declare -x PMODULES_DEFAULT_RELEASES='stable'

# legacy vars
declare -x PSI_PREFIX="${PMODULES_ROOT}"
declare -x PSI_CONFIG_DIR="${PMODULES_CONFIG_DIR}"
declare -x PSI_MODULES_ROOT="${PMODULES_MODULES_ROOT}"
declare -x PSI_TEMPLATES_DIR="${PMODULES_TEMPLATES_DIR}"
declare -x PSI_DEFAULT_FAMILIES="${PMODULES_DEFAULT_GROUPS}"
declare -x PSI_DEFAULT_RELEASES="${PMODULES_DEFAULT_RELEASES}"
declare -x PSI_DEFINED_RELEASES="${PMODULES_DEFINED_RELEASES}"