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
f2d9959b
Commit
f2d9959b
authored
9 years ago
by
Henry Weller
Browse files
Options
Downloads
Patches
Plain Diff
foamConfigurePaths: Updated foamInstall option
parent
2b71ea6f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/tools/foamConfigurePaths
+13
-8
13 additions, 8 deletions
bin/tools/foamConfigurePaths
with
13 additions
and
8 deletions
bin/tools/foamConfigurePaths
+
13
−
8
View file @
f2d9959b
...
@@ -79,10 +79,10 @@ _inlineSed()
...
@@ -79,10 +79,10 @@ _inlineSed()
[
-f
etc/bashrc
]
||
usage
"Please run from top-level directory of installation"
[
-f
etc/bashrc
]
||
usage
"Please run from top-level directory of installation"
unset
foamInst
all
projectName projectVersion archOption
unset
foamInst
Dir
projectName projectVersion archOption
unset
paraviewInstall scotchArchPath
unset
paraviewInstall scotchArchPath
#
p
arse options
#
P
arse options
while
[
"$#"
-gt
0
]
while
[
"$#"
-gt
0
]
do
do
case
"
$1
"
in
case
"
$1
"
in
...
@@ -91,13 +91,18 @@ do
...
@@ -91,13 +91,18 @@ do
;;
;;
-foamInstall
|
--foamInstall
)
-foamInstall
|
--foamInstall
)
[
"$#"
-ge
2
]
||
usage
"'
$1
' option requires an argument"
[
"$#"
-ge
2
]
||
usage
"'
$1
' option requires an argument"
foamInst
all
=
"
$2
"
foamInst
Dir
=
"
$2
"
#
r
eplace
foamInstall
=...
#
R
eplace
FOAM_INST_DIR
=...
_inlineSed
\
_inlineSed
\
etc/bashrc
\
etc/bashrc
\
'foamInstall=.*'
\
'\(.*BASH_SOURCE.*\)'
\
'foamInstall='
"
$foamInstall
"
\
'#\1'
\
"Replacing foamInstall setting by '
$foamInstall
'"
"Removing default FOAM_INST_DIR setting"
_inlineSed
\
etc/bashrc
\
'^export FOAM_INST_DIR=.*'
\
'export FOAM_INST_DIR='
"
$foamInstDir
"
\
"Setting FOAM_INST_DIR to '
$foamInstDir
'"
shift
2
shift
2
;;
;;
-projectName
|
--projectName
)
-projectName
|
--projectName
)
...
@@ -189,7 +194,7 @@ do
...
@@ -189,7 +194,7 @@ do
esac
esac
done
done
[
-n
"
$foamInst
all
"
-o
-n
"
$projectName
"
-o
-n
"
$projectVersion
"
-o
-n
"
$archOption
"
\
[
-n
"
$foamInst
Dir
"
-o
-n
"
$projectName
"
-o
-n
"
$projectVersion
"
-o
-n
"
$archOption
"
\
-o
-n
"
$paraviewInstall
"
-o
-n
"
$paraviewVersion
"
\
-o
-n
"
$paraviewInstall
"
-o
-n
"
$paraviewVersion
"
\
-o
-n
"
$scotchVersion
"
-o
-n
"
$scotchArchPath
"
\
-o
-n
"
$scotchVersion
"
-o
-n
"
$scotchArchPath
"
\
]
||
usage
"Please specify at least one configure option"
]
||
usage
"Please specify at least one configure option"
...
...
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