From 90c9268086ebf304e708834864fa6199be22a89d Mon Sep 17 00:00:00 2001 From: vsr Date: Mon, 15 May 2006 11:43:17 +0000 Subject: [PATCH] Fix KERNEL module installation script: pickup_env() procedure --- config_files/KERNEL_BIN.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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; -- 2.39.2