Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Pmodules
buildblocks
Commits
6a7ae8ed
Commit
6a7ae8ed
authored
Mar 18, 2015
by
gsell
Browse files
scripts/Bootstrap/Pmodules/bash: run module purge and re-initialize everything
parent
cc7a8100
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
18 deletions
+9
-18
scripts/Bootstrap/Pmodules/bash
scripts/Bootstrap/Pmodules/bash
+9
-18
No files found.
scripts/Bootstrap/Pmodules/bash
View file @
6a7ae8ed
...
@@ -117,24 +117,18 @@ function replace_path () {
...
@@ -117,24 +117,18 @@ function replace_path () {
sed
'/^\s*$/d'
|
tr
"
\n
"
":"
|
sed
-e
's|^:||'
-e
's|:$||'
)
sed
'/^\s*$/d'
|
tr
"
\n
"
":"
|
sed
-e
's|^:||'
-e
's|:$||'
)
}
}
module purge
#############################################################################
#############################################################################
# setup environment
# setup environment
#
#
if
[[
-z
${
LOADEDMODULES
}
]]
;
then
declare
-x
LOADEDMODULES
=
''
declare
-x
LOADEDMODULES
=
''
declare
-x
PSI_LOADEDFAMILIES
=
''
fi
declare
-x
MODULEPATH
=
''
for
f
in
${
PSI_DEFAULT_FAMILIES
}
;
do
if
[[
-z
${
MODULEPATH
}
]]
;
then
append_path MODULEPATH
"
${
PSI_PREFIX
}
/
${
PSI_MODULES_ROOT
}
/
$f
"
declare
-x
MODULEPATH
=
''
append_path PSI_LOADEDFAMILIES
"
${
f
}
"
for
f
in
${
PSI_DEFAULT_FAMILIES
}
;
do
done
append_path MODULEPATH
"
${
PSI_PREFIX
}
/
${
PSI_MODULES_ROOT
}
/
$f
"
append_path PSI_LOADEDFAMILIES
"
${
f
}
"
done
fi
if
[[
-z
${
PSI_LOADEDFAMILIES
}
]]
;
then
declare
-x
PSI_LOADEDFAMILIES
=
''
fi
replace_path PATH
"
${
PMODULES_HOME
%/*
}
/.*"
replace_path PATH
"
${
PMODULES_HOME
%/*
}
/.*"
replace_path MANPATH
"
${
PMODULES_HOME
%/*
}
/.*"
replace_path MANPATH
"
${
PMODULES_HOME
%/*
}
/.*"
...
@@ -151,9 +145,6 @@ fi
...
@@ -151,9 +145,6 @@ fi
#############################################################################
#############################################################################
# legacy...
# legacy...
#
#
#declare -x MODULE_VERSION=${PMODULES_VERSION}
#declare -x MODULE_VERSION_STACK="${PMODULE_VERSION}"
#declare -x MODULESHOME="${PMODULES_HOME}"
unset
MODULE_VERSION
unset
MODULE_VERSION
unset
MODULE_VERSION_STACK
unset
MODULE_VERSION_STACK
unset
MODULESHOME
unset
MODULESHOME
...
...
Write
Preview
Markdown
is supported
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