etc/ shell settings cleanup

* prefix internal functions with _foam to prevent collisions
  * cleanup functions after use
  * centralized FOAM_VERBOSE info to etc/{bashrc,cshrc}
This commit is contained in:
Mark Olesen
2008-06-25 14:26:42 +02:00
parent 02ffb9d8e0
commit 0f76df8b2d
13 changed files with 103 additions and 125 deletions

View File

@ -23,7 +23,7 @@
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
# Script
# bashrc
# paraview/bashrc
#
# Description
# Setup file for Paraview.
@ -31,12 +31,6 @@
#
#------------------------------------------------------------------------------
if [ "$PS1" -a "$foamDotFile" ]; then
if [ "$FOAM_VERBOSE" ]; then
echo "Executing: $foamDotFile"
fi
fi
export CMAKE_HOME=$WM_THIRD_PARTY_DIR/cmake-2.4.6/platforms/$WM_ARCH
if [ -r $CMAKE_HOME ]; then

View File

@ -23,7 +23,7 @@
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
# Script
# cshrc
# paraview/cshrc
#
# Description
# Startup File for Paraview.
@ -31,12 +31,6 @@
#
#------------------------------------------------------------------------------
if ($?prompt && $?foamDotFile) then
if ($?FOAM_VERBOSE) then
echo "Executing: $foamDotFile"
endif
endif
setenv CMAKE_HOME $WM_THIRD_PARTY_DIR/cmake-2.4.6/platforms/$WM_ARCH
if ( -r $CMAKE_HOME ) then