Salome HOME
Add path to common libs into 'LD_LIBRARY_PATH'
[tools/install.git] / config_files / GHS3DPLUGIN.sh
index 9f878956175c06c9791c0cdafc7e7515ab7ee45a..cfb93433b001adf2d333cd31b7ec7734c58e5687 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.7"
+VERSION="4.0.0"
 
 check_version(){
 if [ -n "${GHS3DPLUGIN_ROOT_DIR}" ]; then
@@ -25,12 +25,9 @@ if [ -n "${GHS3DPLUGIN_ROOT_DIR}" ]; then
     fi
   return 0
 elif [ -n "${GHS3DPLUGIN_SRC_DIR}" ]; then
-    if [ -f ${GHS3DPLUGIN_SRC_DIR}/configure.in.base ]; then
-       ver=`grep -E "^VERSION=" ${GHS3DPLUGIN_SRC_DIR}/configure.in.base | awk -F= '{print $NF}' | tr -d '[:space:]' ` 
-       if [ "$ver" = "${VERSION}" ]; then
-           return 0
-       fi
-    fi
+  check_salome_src_version GHS3DPLUGIN_SRC_DIR $VERSION
+  if [ $? -eq 0 ] ; then return 0 ; fi
+  return 1
 fi
 return 1
 }