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;