Add possibility of preset to cshrc
--HG-- branch : bgschaid/minorAdditionsBranch
This commit is contained in:
parent
72c243a96f
commit
194418bc0c
2 changed files with 13 additions and 2 deletions
|
@ -38,7 +38,7 @@ then
|
||||||
# echo "Found presettings $prefSettingFile"
|
# echo "Found presettings $prefSettingFile"
|
||||||
. $prefSettingFile
|
. $prefSettingFile
|
||||||
fi
|
fi
|
||||||
|
unset prefSettingFile
|
||||||
|
|
||||||
export WM_PROJECT=OpenFOAM
|
export WM_PROJECT=OpenFOAM
|
||||||
export WM_PROJECT_VERSION=1.6-ext
|
export WM_PROJECT_VERSION=1.6-ext
|
||||||
|
|
13
etc/cshrc
13
etc/cshrc
|
@ -30,10 +30,22 @@
|
||||||
# Sourced from ~/.login or ~/.cshrc
|
# Sourced from ~/.login or ~/.cshrc
|
||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
set called=($_)
|
||||||
|
set prefSettingFile=$called[2].preset
|
||||||
|
|
||||||
|
if ( -r $prefSettingFile ) then
|
||||||
|
# echo "Found presettings $prefSettingFile"
|
||||||
|
source $prefSettingFile
|
||||||
|
endif
|
||||||
|
unset prefSettingFile,called
|
||||||
|
|
||||||
setenv WM_PROJECT OpenFOAM
|
setenv WM_PROJECT OpenFOAM
|
||||||
setenv WM_PROJECT_VERSION 1.6-ext
|
setenv WM_PROJECT_VERSION 1.6-ext
|
||||||
|
|
||||||
|
if ( "$WM_PROJECT_VERSION_ADDITION" != "" ) then
|
||||||
|
setenv WM_PROJECT_VERSION $WM_PROJECT_VERSION-$WM_PROJECT_VERSION_ADDITION
|
||||||
|
endif
|
||||||
|
|
||||||
# helps to easily write #ifdefs to detect a dev-version
|
# helps to easily write #ifdefs to detect a dev-version
|
||||||
setenv FOAM_DEV 1
|
setenv FOAM_DEV 1
|
||||||
|
|
||||||
|
@ -357,4 +369,3 @@ unset cleanEnv cleanProg colonPath foamInstall foamOldDirs
|
||||||
unalias _foamSource
|
unalias _foamSource
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
Reference in a new issue