Salome HOME
*** empty log message ***
[tools/install.git] / config_files / LIGHT.sh
index dc0b2f7bdc9ceaea4442ccf734577e597ead14c8..05c8b7101869fee4155b91ada585164b9c1e4d21 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.6"
+VERSION="4.0.0"
 
 check_version(){
 if [ -n "${LIGHT_ROOT_DIR}" ]; then
@@ -23,12 +23,9 @@ if [ -n "${LIGHT_ROOT_DIR}" ]; then
        fi
     fi
 elif [ -n "${LIGHT_SRC_DIR}" ]; then
-    if [ -f ${LIGHT_SRC_DIR}/configure.in.base ]; then
-       ver=`grep -E "^VERSION=" ${LIGHT_SRC_DIR}/configure.in.base | awk -F= '{print $NF}' | tr -d '[:space:]' ` 
-       if [ "$ver" = "${VERSION}" ]; then
-           return 0
-       fi
-    fi
+  check_salome_src_version LIGHT_SRC_DIR $VERSION
+  if [ $? -eq 0 ] ; then return 0 ; fi
+  return 1
 fi
 return 1
 }