mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: add command-line mechanism for specifying user prefs
- eg, . PATH_TO_FOAM/etc/bashrc myPrefs.sh
This commit is contained in:
@ -101,6 +101,15 @@ do
|
||||
# name=value -> export name=value
|
||||
eval "export $1"
|
||||
;;
|
||||
*)
|
||||
# filename: source it
|
||||
if [ -f "$1" ]
|
||||
then
|
||||
_foamSource "$1"
|
||||
else
|
||||
_foamSource `$WM_PROJECT_DIR/bin/foamEtcFile "$1"`
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user