Salome HOME
addition of castem_env_products.sh and update of the scripts
[tools/simanio.git] / scripts / env_products.sh
index 4f06e12943c3b411637f047c1fe2571a2cabf4e9..bb940230bdb0ce19d6e3ebc8aff7b476c0c6142f 100644 (file)
@@ -80,7 +80,15 @@ export $1=$out_var
 
 #------ Setting products installation directory ------
 #export INST_ROOT=/dn40/PRODUCTS/salome/6.x/opt/DEBIAN.6.0.64/6.6.0
-export INST_ROOT=${PWD}
+
+if [ -z "${SALOME_ROOT_DIR}" ]; then
+    echo "You need to set the environment variable SALOME_ROOT_DIR"
+    exit 1
+fi
+
+echo "SALOME_ROOT_DIR = " ${SALOME_ROOT_DIR}
+
+export INST_ROOT=${SALOME_ROOT_DIR}
 
 ### Variables for OCCT 653
 ### Set this variable to 1 in order to use OCCT products from ${INST_ROOT}
@@ -362,9 +370,9 @@ exportp PATH ${INST_ROOT}/Sphinx-1.1.3/bin
 # nothing to do
 ##
 #------ libxml2 ------
-export LIBXML_DIR=${INST_ROOT}/libxml2-2.7.8
-exportp PATH ${LIBXML_DIR}/bin
-exportp LD_LIBRARY_PATH ${LIBXML_DIR}/lib
+#export LIBXML_DIR=${INST_ROOT}/libxml2-2.7.8
+#exportp PATH ${LIBXML_DIR}/bin
+#exportp LD_LIBRARY_PATH ${LIBXML_DIR}/lib
 ##
 #------ libxml2_src ------
 # nothing to do
@@ -417,10 +425,11 @@ elif [ -e KERNEL_SRC/CMakeLists.txt ] ; then
 fi
 if [ "$vx" != "" ] ; then
     vx="_$vx"
+else
+    vx="_7.0.0"
 fi
 
-#echo vx ================== ${vx}
-#exit
+echo vx == ${vx}
 
 #------ KERNEL ------
 export KERNEL_ROOT_DIR=${INST_ROOT}/KERNEL${vx}