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
# cint/bashrc
#
# Description
# Setup file for cint

View File

@ -23,7 +23,7 @@
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
# Script
# cshrc
# cint/cshrc
#
# Description
# Startup File for cint

View File

@ -23,7 +23,7 @@
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
# Script
# bashrc
# ensightFoam/bashrc
#
# Description
# Setup file for Ensight 8.?
@ -31,12 +31,6 @@
#
#------------------------------------------------------------------------------
if [ "$PS1" -a "$foamDotFile" ]; then
if [ "$FOAM_VERBOSE" ]; then
echo "Executing: $foamDotFile"
fi
fi
# fallback value
if [ ! -d "$CEI_HOME" ]; then
export CEI_HOME=/usr/local/ensight/CEI

View File

@ -23,7 +23,7 @@
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
# Script
# cshrc
# ensightFoam/cshrc
#
# Description
# Startup File for Ensight 8.?.
@ -31,12 +31,6 @@
#
#------------------------------------------------------------------------------
if ($?prompt && $?foamDotFile) then
if ($?FOAM_VERBOSE) then
echo "Executing: $foamDotFile"
endif
endif
# fallback value
if (! $?CEI_HOME) then
setenv CEI_HOME /usr/local/ensight/CEI
@ -44,6 +38,7 @@ endif
if ( -r $CEI_HOME ) then
# special treatment for 32bit FOAM and 64bit Ensight
if ($WM_ARCH == linux) then
setenv CEI_ARCH linux_linux_2.6_32
endif
@ -53,7 +48,7 @@ if ( -r $CEI_HOME ) then
setenv ENSIGHT8_INPUT dummy
setenv ENSIGHT8_READER $FOAM_LIBBIN
else
unset CEI_HOME
unsetenv CEI_HOME
endif
# -----------------------------------------------------------------------------

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

View File

@ -23,7 +23,7 @@
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
# Script
# bashrc
# paraview3/bashrc
#
# Description
# Setup file for ParaView3.
@ -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
# paraview3/cshrc
#
# Description
# Startup File for Paraview3
@ -31,18 +31,12 @@
#
#------------------------------------------------------------------------------
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
set path=($CMAKE_HOME/bin $path)
else
unset CMAKE_HOME
unsetenv CMAKE_HOME
endif
setenv ParaView_VERSION 3.3-cvs