]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
Fix KERNEL module installation script: pickup_env() procedure
authorvsr <vsr@opencascade.com>
Mon, 15 May 2006 11:43:17 +0000 (11:43 +0000)
committervsr <vsr@opencascade.com>
Mon, 15 May 2006 11:43:17 +0000 (11:43 +0000)
config_files/KERNEL_BIN.sh

index 7758dadfe8da478ba977a67294078fd8e8167459..e52c2e2d61b793563ed52d830451255ab9766714 100755 (executable)
@@ -87,12 +87,14 @@ print_env
 pickup_env()
 {
 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE} ${PRODUCT_DIR}
-cd ${PRODUCT_DIR}
-version=`cat bin/salome/VERSION | awk -F: '{print $2}' | tr -d '[:space:]'`
-dir="${HOME}/salome_appli_$version"
-bin/salome/createAppli.sh $dir
-rm -rf mkdir $dir/env.d/*.sh
-cp -f ${PRODUCT_DIR}/salome.sh $dir/env.d
+if [ -d ${PRODUCT_DIR} ] ; then
+    cd ${PRODUCT_DIR}
+    version=`cat bin/salome/VERSION | awk -F: '{print $2}' | tr -d '[:space:]'`
+    dir="${HOME}/salome_appli_$version"
+    bin/salome/createAppli.sh $dir
+    rm -rf mkdir $dir/env.d/*.sh
+    cp -f ${PRODUCT_DIR}/salome.sh $dir/env.d
+fi
 }
 
 export PROCEDURE=$1;