Add possibility of preset to cshrc

--HG--
branch : bgschaid/minorAdditionsBranch
This commit is contained in:
Bernhard F.W. Gschaider 2013-07-19 01:44:58 +02:00
parent 72c243a96f
commit 194418bc0c
2 changed files with 13 additions and 2 deletions

View file

@ -38,7 +38,7 @@ then
# echo "Found presettings $prefSettingFile"
. $prefSettingFile
fi
unset prefSettingFile
export WM_PROJECT=OpenFOAM
export WM_PROJECT_VERSION=1.6-ext

View file

@ -30,10 +30,22 @@
# 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_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
setenv FOAM_DEV 1
@ -357,4 +369,3 @@ unset cleanEnv cleanProg colonPath foamInstall foamOldDirs
unalias _foamSource
# -----------------------------------------------------------------------------