Salome HOME
*** empty log message ***
[tools/install.git] / config_files / LIGHT.sh
index aaba12fffd03202b1f1cdaf332037900b5820853..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
 }
@@ -77,10 +74,8 @@ source ${INSTALL_WORK}/$SHRC
 
 check_jb tar xfz ${SOURCE_DIR}/LIGHTsourcesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
 
-if [ $PROCEDURE == "install_source" ]; then
 # to generate environment scripts
-    try_preinstalled
-fi
+try_preinstalled
 }
 
 install_source_and_build()