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
47396215
Commit
47396215
authored
14 years ago
by
Mark Olesen
Browse files
Options
Downloads
Patches
Plain Diff
STYLE: move WM_PROJECT_SITE to bashrc, cshrc
- avoid editing of settings.{sh,csh}
parent
9cbc0efc
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
etc/bashrc
+11
-3
11 additions, 3 deletions
etc/bashrc
etc/cshrc
+12
-3
12 additions, 3 deletions
etc/cshrc
etc/settings.csh
+7
-5
7 additions, 5 deletions
etc/settings.csh
etc/settings.sh
+8
-5
8 additions, 5 deletions
etc/settings.sh
with
38 additions
and
16 deletions
etc/bashrc
+
11
−
3
View file @
47396215
...
...
@@ -108,16 +108,24 @@ then
fi
# Location of
site/user files
# ~~~~~~~~~~~~~~~~~~~~~~~~
~~~
# Location of
installation
# ~~~~~~~~~~~~~~~~~~~~~~~~
export
WM_PROJECT_INST_DIR
=
$FOAM_INST_DIR
export
WM_PROJECT_DIR
=
$WM_PROJECT_INST_DIR
/
$WM_PROJECT
-
$WM_PROJECT_VERSION
export
WM_PROJECT_USER_DIR
=
$HOME
/
$WM_PROJECT
/
$USER
-
$WM_PROJECT_VERSION
# Location of third-party software
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export
WM_THIRD_PARTY_DIR
=
$WM_PROJECT_INST_DIR
/ThirdParty-
$WM_PROJECT_VERSION
# Location of site-specific templates etc
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# unset is equivalent to $WM_PROJECT_INST_DIR/site
unset
WM_PROJECT_SITE
# Location of user files
# ~~~~~~~~~~~~~~~~~~~~~~
export
WM_PROJECT_USER_DIR
=
$HOME
/
$WM_PROJECT
/
$USER
-
$WM_PROJECT_VERSION
# Source files, possibly with some verbosity
_foamSource
()
...
...
This diff is collapsed.
Click to expand it.
etc/cshrc
+
12
−
3
View file @
47396215
...
...
@@ -103,16 +103,25 @@ setenv FOAM_SIGFPE
# NB: the WM_PROJECT_INST_DIR might not be identical between versions
set
foamOldDirs
=
"
$FOAM_INST_DIR
$HOME
/
$WM_PROJECT
/
$LOGNAME
"
# Location of site/user files
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Location of installation
# ~~~~~~~~~~~~~~~~~~~~~~~~
setenv WM_PROJECT_INST_DIR
$FOAM_INST_DIR
setenv WM_PROJECT_DIR
$WM_PROJECT_INST_DIR
/
$WM_PROJECT
-
$WM_PROJECT_VERSION
setenv WM_PROJECT_USER_DIR
$HOME
/
$WM_PROJECT
/
$LOGNAME
-
$WM_PROJECT_VERSION
# Location of third-party software
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
setenv WM_THIRD_PARTY_DIR
$WM_PROJECT_INST_DIR
/ThirdParty-
$WM_PROJECT_VERSION
# Location of site-specific templates etc
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# unset is equivalent to $WM_PROJECT_INST_DIR/site
unsetenv WM_PROJECT_SITE
# Location of user files
# ~~~~~~~~~~~~~~~~~~~~~~
setenv WM_PROJECT_USER_DIR
$HOME
/
$WM_PROJECT
/
$LOGNAME
-
$WM_PROJECT_VERSION
# Source files, possibly with some verbosity
alias
_foamSource
'if ($?FOAM_VERBOSE && $?prompt) echo "Sourcing: \!*"; if (\!* != "") source \!*'
...
...
This diff is collapsed.
Click to expand it.
etc/settings.csh
+
7
−
5
View file @
47396215
...
...
@@ -148,13 +148,15 @@ setenv FOAM_LIBBIN $WM_PROJECT_DIR/platforms/$WM_OPTIONS/lib
# external (ThirdParty) libraries
setenv FOAM_EXT_LIBBIN
$WM_THIRD_PARTY_DIR
/platforms/
$WM_OPTIONS
/lib
# default location of site-specific templates etc
# setenv WM_PROJECT_SITE $WM_PROJECT_INST_DIR/site
# shared site executables/libraries
# similar naming convention as ~OpenFOAM expansion
setenv FOAM_SITE_APPBIN
$WM_PROJECT_INST_DIR
/site/
$WM_PROJECT_VERSION
/platforms/
$WM_OPTIONS
/bin
setenv FOAM_SITE_LIBBIN
$WM_PROJECT_INST_DIR
/site/
$WM_PROJECT_VERSION
/platforms/
$WM_OPTIONS
/lib
if
(
$?
WM_PROJECT_SITE
)
then
setenv FOAM_SITE_APPBIN
$WM_PROJECT_SITE
/
$WM_PROJECT_VERSION
/platforms/
$WM_OPTIONS
/bin
setenv FOAM_SITE_LIBBIN
$WM_PROJECT_SITE
/
$WM_PROJECT_VERSION
/platforms/
$WM_OPTIONS
/lib
else
setenv FOAM_SITE_APPBIN
$WM_PROJECT_INST_DIR
/site/
$WM_PROJECT_VERSION
/platforms/
$WM_OPTIONS
/bin
setenv FOAM_SITE_LIBBIN
$WM_PROJECT_INST_DIR
/site/
$WM_PROJECT_VERSION
/platforms/
$WM_OPTIONS
/lib
endif
# user executables/libraries
setenv FOAM_USER_APPBIN
$WM_PROJECT_USER_DIR
/platforms/
$WM_OPTIONS
/bin
...
...
This diff is collapsed.
Click to expand it.
etc/settings.sh
+
8
−
5
View file @
47396215
...
...
@@ -169,13 +169,16 @@ export FOAM_LIBBIN=$WM_PROJECT_DIR/platforms/$WM_OPTIONS/lib
# external (ThirdParty) libraries
export
FOAM_EXT_LIBBIN
=
$WM_THIRD_PARTY_DIR
/platforms/
$WM_OPTIONS
/lib
# default location of site-specific templates etc
# export WM_PROJECT_SITE=$WM_PROJECT_INST_DIR/site
# shared site executables/libraries
# similar naming convention as ~OpenFOAM expansion
export
FOAM_SITE_APPBIN
=
$WM_PROJECT_INST_DIR
/site/
$WM_PROJECT_VERSION
/platforms/
$WM_OPTIONS
/bin
export
FOAM_SITE_LIBBIN
=
$WM_PROJECT_INST_DIR
/site/
$WM_PROJECT_VERSION
/platforms/
$WM_OPTIONS
/lib
if
[
-n
"
$WM_PROJECT_SITE
"
]
then
export
FOAM_SITE_APPBIN
=
$WM_PROJECT_SITE
/
$WM_PROJECT_VERSION
/platforms/
$WM_OPTIONS
/bin
export
FOAM_SITE_LIBBIN
=
$WM_PROJECT_SITE
/
$WM_PROJECT_VERSION
/platforms/
$WM_OPTIONS
/lib
else
export
FOAM_SITE_APPBIN
=
$WM_PROJECT_INST_DIR
/site/
$WM_PROJECT_VERSION
/platforms/
$WM_OPTIONS
/bin
export
FOAM_SITE_LIBBIN
=
$WM_PROJECT_INST_DIR
/site/
$WM_PROJECT_VERSION
/platforms/
$WM_OPTIONS
/lib
fi
# user executables/libraries
export
FOAM_USER_APPBIN
=
$WM_PROJECT_USER_DIR
/platforms/
$WM_OPTIONS
/bin
...
...
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