mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
EHN: preserve WM_PROJECT_SITE in bashrc, cshrc
- otherwise there is actually no means of placing a site-site prefs.sh in the $WM_PROJECT_SITE/ directory
This commit is contained in:
@ -120,7 +120,12 @@ export WM_THIRD_PARTY_DIR=$WM_PROJECT_INST_DIR/ThirdParty-$WM_PROJECT_VERSION
|
|||||||
# Location of site-specific templates etc
|
# Location of site-specific templates etc
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
# unset is equivalent to $WM_PROJECT_INST_DIR/site
|
# unset is equivalent to $WM_PROJECT_INST_DIR/site
|
||||||
unset WM_PROJECT_SITE
|
if [ -d "$WM_PROJECT_SITE" ]
|
||||||
|
then
|
||||||
|
export WM_PROJECT_SITE
|
||||||
|
else
|
||||||
|
unset WM_PROJECT_SITE
|
||||||
|
fi
|
||||||
|
|
||||||
# Location of user files
|
# Location of user files
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|||||||
10
etc/cshrc
10
etc/cshrc
@ -107,9 +107,6 @@ if ( $?WM_PROJECT_INST_DIR ) then
|
|||||||
set foamOldDirs="$WM_PROJECT_INST_DIR $foamOldDirs"
|
set foamOldDirs="$WM_PROJECT_INST_DIR $foamOldDirs"
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
if ( $?WM_PROJECT_SITE ) then
|
|
||||||
set foamOldDirs="$WM_PROJECT_SITE $foamOldDirs"
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
|
||||||
# Location of installation
|
# Location of installation
|
||||||
@ -124,7 +121,12 @@ setenv WM_THIRD_PARTY_DIR $WM_PROJECT_INST_DIR/ThirdParty-$WM_PROJECT_VERSION
|
|||||||
# Location of site-specific templates etc
|
# Location of site-specific templates etc
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
# unset is equivalent to $WM_PROJECT_INST_DIR/site
|
# unset is equivalent to $WM_PROJECT_INST_DIR/site
|
||||||
unsetenv WM_PROJECT_SITE
|
if ( $?WM_PROJECT_SITE ) then
|
||||||
|
set foamOldDirs="$WM_PROJECT_SITE $foamOldDirs"
|
||||||
|
if ( ! -d "$WM_PROJECT_SITE" ) unsetenv WM_PROJECT_SITE
|
||||||
|
else
|
||||||
|
unsetenv WM_PROJECT_SITE
|
||||||
|
endif
|
||||||
|
|
||||||
# Location of user files
|
# Location of user files
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|||||||
Reference in New Issue
Block a user