mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -23,7 +23,7 @@
|
||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
#
|
||||
# Script
|
||||
# bashrc
|
||||
# cint/bashrc
|
||||
#
|
||||
# Description
|
||||
# Setup file for cint
|
||||
|
||||
@ -23,7 +23,7 @@
|
||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
#
|
||||
# Script
|
||||
# cshrc
|
||||
# cint/cshrc
|
||||
#
|
||||
# Description
|
||||
# Startup File for cint
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user