STYLE: drop check for paraview versions

- we don't support paraview < 3.x anymore
This commit is contained in:
Mark Olesen
2011-03-28 11:07:10 +02:00
parent 02c235271b
commit 3c30eca1cc
4 changed files with 33 additions and 50 deletions

View File

@ -4,14 +4,10 @@ set -x
if [ -d "$ParaView_DIR" -a -r "$ParaView_DIR" ] if [ -d "$ParaView_DIR" -a -r "$ParaView_DIR" ]
then then
case "$ParaView_VERSION" in [ -n "$PV_PLUGIN_PATH" ] || {
3* | git) echo "$0 : PV_PLUGIN_PATH not valid - it is unset"
if [ ! -n "${PV_PLUGIN_PATH}" ]
then
echo "$0 : PV_PLUGIN_PATH not a valid."
exit 1 exit 1
fi }
# ensure CMake gets the correct C++ compiler # ensure CMake gets the correct C++ compiler
[ -n "$WM_CXX" ] && export CXX="$WM_CXX" [ -n "$WM_CXX" ] && export CXX="$WM_CXX"
@ -19,8 +15,6 @@ then
wmake libso vtkPV3Readers wmake libso vtkPV3Readers
PV3blockMeshReader/Allwmake PV3blockMeshReader/Allwmake
PV3FoamReader/Allwmake PV3FoamReader/Allwmake
;;
esac
fi fi
# ----------------------------------------------------------------- end-of-file # ----------------------------------------------------------------- end-of-file

View File

@ -4,8 +4,6 @@ set -x
if [ -d "$ParaView_DIR" -a -r "$ParaView_DIR" ] if [ -d "$ParaView_DIR" -a -r "$ParaView_DIR" ]
then then
case "$ParaView_VERSION" in
3* | git)
wmake libso vtkPV3Foam wmake libso vtkPV3Foam
( (
cd PV3FoamReader cd PV3FoamReader
@ -14,8 +12,6 @@ then
cmake ../.. cmake ../..
make make
) )
;;
esac
fi fi
# ----------------------------------------------------------------- end-of-file # ----------------------------------------------------------------- end-of-file

View File

@ -4,8 +4,6 @@ set -x
if [ -d "$ParaView_DIR" -a -r "$ParaView_DIR" ] if [ -d "$ParaView_DIR" -a -r "$ParaView_DIR" ]
then then
case "$ParaView_VERSION" in
3* | git)
wmake libso vtkPV3blockMesh wmake libso vtkPV3blockMesh
( (
cd PV3blockMeshReader cd PV3blockMeshReader
@ -14,8 +12,6 @@ then
cmake ../.. cmake ../..
make make
) )
;;
esac
fi fi
# ----------------------------------------------------------------- end-of-file # ----------------------------------------------------------------- end-of-file

View File

@ -168,8 +168,7 @@ builtin | OpenFOAM)
;; ;;
esac esac
case "$ParaView_VERSION" in
3* | git)
# only create/remove caseFile if it didn't already exist # only create/remove caseFile if it didn't already exist
[ -e $caseFile ] || { [ -e $caseFile ] || {
trap "rm -f $caseFile 2>/dev/null; exit 0" EXIT TERM INT trap "rm -f $caseFile 2>/dev/null; exit 0" EXIT TERM INT
@ -178,7 +177,5 @@ case "$ParaView_VERSION" in
} }
paraview --data="$caseFile" paraview --data="$caseFile"
;;
esac
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------