Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
openfoam
Commits
a8190786
Commit
a8190786
authored
16 years ago
by
mattijs
Browse files
Options
Downloads
Patches
Plain Diff
multi-dir path handling
parent
2bc4f644
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
etc/settings.sh
+31
-14
31 additions, 14 deletions
etc/settings.sh
with
31 additions
and
14 deletions
etc/settings.sh
+
31
−
14
View file @
a8190786
...
...
@@ -33,22 +33,40 @@
_foamAddPath
()
{
while
[
$#
-ge
1
]
do
[
-d
$1
]
||
mkdir
-p
$1
export
PATH
=
$1
:
$PATH
shift
done
if
[
$#
-eq
1
]
then
oldIFS
=
"
$IFS
"
IFS
=
':'
# split on ':'
set
--
$1
IFS
=
"
$oldIFS
"
unset
oldIFS
fi
while
[
$#
-ge
1
]
do
[
-d
$1
]
||
mkdir
-p
$1
export
PATH
=
$1
:
$PATH
shift
done
}
_foamAddLib
()
{
while
[
$#
-ge
1
]
do
[
-d
$1
]
||
mkdir
-p
$1
export
LD_LIBRARY_PATH
=
$1
:
$LD_LIBRARY_PATH
shift
done
if
[
$#
-eq
1
]
then
oldIFS
=
"
$IFS
"
IFS
=
':'
# split on ':'
set
--
$1
IFS
=
"
$oldIFS
"
unset
oldIFS
fi
while
[
$#
-ge
1
]
do
[
-d
$1
]
||
mkdir
-p
$1
export
LD_LIBRARY_PATH
=
$1
:
$LD_LIBRARY_PATH
shift
done
}
...
...
@@ -99,7 +117,6 @@ case "$WM_COMPILER_INST" in
OpenFOAM
)
case
"
$WM_COMPILER
"
in
Gcc
)
#export WM_COMPILER_DIR=$WM_THIRD_PARTY_DIR/gcc-4.3.1/platforms/$WM_ARCH$WM_COMPILER_ARCH
export
WM_COMPILER_DIR
=
$WM_THIRD_PARTY_DIR
/gcc-4.3.2/platforms/
$WM_ARCH$WM_COMPILER_ARCH
_foamAddLib
$WM_THIRD_PARTY_DIR
/mpfr-2.3.2/platforms/
$WM_ARCH$WM_COMPILER_ARCH
/lib
_foamAddLib
$WM_THIRD_PARTY_DIR
/gmp-4.2.3/platforms/
$WM_ARCH$WM_COMPILER_ARCH
/lib
...
...
@@ -127,7 +144,7 @@ esac
if
[
-d
"
$WM_COMPILER_BIN
"
]
;
then
_foamAddPath
$WM_COMPILER_BIN
_foamAddLib
$WM_COMPILER_LIB
_foamAddLib
$WM_COMPILER_LIB
fi
unset
WM_COMPILER_BIN WM_COMPILER_LIB
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment