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
73cf0583
Commit
73cf0583
authored
17 years ago
by
Mark Olesen
Browse files
Options
Downloads
Patches
Plain Diff
attempt to preserve the installation directory 'FOAM_INST_DIR' when sourcing files
parent
8bdd3501
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
wmake/wmakeScheduler
+29
-18
29 additions, 18 deletions
wmake/wmakeScheduler
with
29 additions
and
18 deletions
wmake/wmakeScheduler
+
29
−
18
View file @
73cf0583
...
@@ -88,28 +88,39 @@ esac
...
@@ -88,28 +88,39 @@ esac
# check <installedProject/.$WM_PROJECT-$WM_PROJECT_VERSION/
# check <installedProject/.$WM_PROJECT-$WM_PROJECT_VERSION/
if
[
"
$WM_PROJECT
"
]
;
then
if
[
"
$WM_PROJECT
"
]
;
then
:
${
FOAM_DOT_DIR
:
=.
$WM_PROJECT
-
$WM_PROJECT_VERSION
}
:
${
FOAM_DOT_DIR
:
=.
$WM_PROJECT
-
$WM_PROJECT_VERSION
}
for
i
in
\
for
i
in
\
$HOME
/
$FOAM_DOT_DIR
\
$HOME
/
$FOAM_DOT_DIR
\
$HOME
/.
$WM_PROJECT
/
$WM_PROJECT_VERSION
\
$HOME
/.
$WM_PROJECT
/
$WM_PROJECT_VERSION
\
$HOME
/.
$WM_PROJECT
\
$HOME
/.
$WM_PROJECT
\
$WM_PROJECT_DIR
/etc
\
$WM_PROJECT_DIR
/etc
\
$WM_PROJECT_DIR
/
$FOAM_DOT_DIR
\
$WM_PROJECT_DIR
/
$FOAM_DOT_DIR
\
;
;
do
do
if
[
-f
"
$i
/
$shellRc
"
]
;
then
if
[
-f
"
$i
/
$shellRc
"
]
;
then
sourceFoam
=
"
$i
/
$shellRc
"
sourceFoam
=
"
$i
/
$shellRc
"
break
break
fi
fi
done
done
fi
fi
# Construct test string for remote execution.
# Construct test string for remote execution.
# Source WM_PROJECT settings if WM_PROJECT environment not set.
# Source WM_PROJECT settings if WM_PROJECT environment not set.
# attempt to preserve the installation directory 'FOAM_INST_DIR'
case
$sourceFoam
in
case
$sourceFoam
in
*
/cshrc
)
sourceFoam
=
'if ( ! $?WM_PROJECT ) source '
"
$sourceFoam
"
;;
*
/bashrc
)
*
/bashrc
)
sourceFoam
=
'[ "$WM_PROJECT" ] || . '
"
$sourceFoam
"
;;
if
[
"
$FOAM_INST_DIR
"
]
;
then
sourceFoam
=
'[ "$WM_PROJECT" ] || '
"FOAM_INST_DIR=
$FOAM_INST_DIR
.
$sourceFoam
"
else
sourceFoam
=
'[ "$WM_PROJECT" ] || '
".
$sourceFoam
"
fi
;;
*
/cshrc
)
# TODO: csh equivalent to bash code (preserving FOAM_INST_DIR)
sourceFoam
=
'if ( ! $?WM_PROJECT ) source '
"
$sourceFoam
"
;;
esac
esac
# quote double-quotes for remote command line
# quote double-quotes for remote command line
...
@@ -166,7 +177,7 @@ do
...
@@ -166,7 +177,7 @@ do
# Set colour
# Set colour
colour
=
${
colours
[
$colourIndex
]
}
colour
=
${
colours
[
$colourIndex
]
}
#echo "** host=$host colourIndex=$colourIndex colour=$colour"
#
#
echo "** host=$host colourIndex=$colourIndex colour=$colour"
if
[
"
$host
"
=
"
$HOST
"
]
;
then
if
[
"
$host
"
=
"
$HOST
"
]
;
then
if
[
"
$colour
"
]
;
then
if
[
"
$colour
"
]
;
then
...
...
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