Skip to content
Snippets Groups Projects
Commit e8e79cc9 authored by Mark Olesen's avatar Mark Olesen
Browse files

ENH: add command-line mechanism for specifying user prefs

- eg,
  . PATH_TO_FOAM/etc/bashrc myPrefs.sh
parent a00ec156
Branches
Tags
No related merge requests found
......@@ -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
......
......@@ -85,6 +85,14 @@ while ( $#argv > 0 )
# name=value -> setenv name value
eval "setenv $argv[1]:s/=/ /"
breaksw
default:
# filename: source it
if ( -f "$1" ) then
_foamSource "$1"
else
_foamSource `$WM_PROJECT_DIR/bin/foamEtcFile "$1"`
endif
breaksw
endsw
shift
end
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment