From: vsr Date: Mon, 15 May 2006 11:43:17 +0000 (+0000) Subject: Fix KERNEL module installation script: pickup_env() procedure X-Git-Tag: mergeto_SALOME_3_17May06~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=90c9268086ebf304e708834864fa6199be22a89d;p=tools%2Finstall.git Fix KERNEL module installation script: pickup_env() procedure --- diff --git a/config_files/KERNEL_BIN.sh b/config_files/KERNEL_BIN.sh index 7758dad..e52c2e2 100755 --- a/config_files/KERNEL_BIN.sh +++ b/config_files/KERNEL_BIN.sh @@ -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;