mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-27 18:13:08 +02:00
85c89df9f5
- introduce new configuration file ${PMODULES_ROOT}/config/Pmodules.conf
- move as much as possible from profile.bash and init/bash to
modulecmd
- expose less environment variables to the user
24 lines
556 B
Bash
24 lines
556 B
Bash
#!/bin/bash
|
|
#
|
|
# The following settings are system defaults. They can be (re-)defined
|
|
# in a system wide profile or in a user's profile.
|
|
|
|
# set default version
|
|
: ${PMODULES_VERSION:=@PMODULES_VERSION@}
|
|
|
|
declare -x PMODULES_ROOT=$(cd $(dirname "${BASH_SOURCE}")/.. && pwd)
|
|
declare -x PMODULES_HOME="${PMODULES_ROOT}/Tools/Pmodules/${PMODULES_VERSION}"
|
|
|
|
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:
|