cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
export YACS_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
+export YACSGui_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
+export YACSGUI_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
+export SalomeAppConfig\=${YACS_ROOT_DIR}/share/salome/resources/yacsgui
if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
if [ "\${ENV_FOR_LAUNCH}" == "1" ] ; then
export PATH=\${YACS_ROOT_DIR}/bin/salome:\${PATH}
# 3. process metis dependencies
metisdir=`printenv METISDIR`
if [ ! -d ${metisdir} ] ; then metisdir=`printenv METISDIR` ; fi
- sed -e "s%-L[^[:space:]]*metis[^[:space:]]%-L${libxmldir}%g" $l > $l"_"
+ sed -e "s%-L[^[:space:]]*metis[^[:space:]]*%-L${metisdir}%g" $l > $l"_"
mv -f $l"_" $l
- # 3. process metis dependencies
+ # 3. process scotch dependencies
scotchdir=`printenv SCOTCHDIR`/bin
if [ ! -d ${scotchdir} ] ; then scotchdir=`printenv SCOTCHDIR`/bin ; fi
sed -e "s%-L[^[:space:]]*scotch[^[:space:]]*/bin%-L${scotchdir}%g" $l > $l"_"