cp -f ${PRODUCT_DIR}/salome.sh ${dir}/env.d
popd > /dev/null
fi
-create_config.sh ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_DIR}
+./create_config.sh ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_DIR}
make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src ${PRODUCT_SRC_DIR}
}
echo " <modules>" >> ${CONFIG_FILE}
# for each module create <module> tag
-SALOME_MODULES="`env | awk -F_ '/[a-zA-Z0-9]*_ROOT_DIR/ { print $1 }' | grep -v -E '^SALOME$' | grep -v -E '^HXX2SALOME$'`"
-GUI_MODULES="`echo ${SALOME_MODULES} | tr \"[:space:]\" \"\n\" | grep -v -E \"(^KERNEL|^GUI|^SAMPLES|PLUGIN)$\"`"
-for mod in ${SALOME_MODULES}; do
- echo ${GUI_MODULES} | tr "[:space:]" "\n" | grep -E "^${mod}$" >& /dev/null
- if [ "$?" = "0" ] ; then
- gui_attr="yes"
- else
- gui_attr="no"
+ALL_ENV="`env | awk -F_ '/[a-zA-Z0-9]*_ROOT_DIR/ { print $1 }' | grep -v -E '^SALOME$'`"
+
+for p in ${ALL_ENV} ; do
+ pvar=${p}_ROOT_DIR
+ pdir=${!pvar}
+ if [ -d ${pdir}/share/salome/resources ] ; then
+ case ${p} in
+ KERNEL | GUI | *PLUGIN ) echo " <module name=\"${p}\" gui=\"no\" path=\"${pdir}\"/>" >> ${CONFIG_FILE} ;;
+ * ) echo " <module name=\"${p}\" gui=\"yes\" path=\"${pdir}\"/>" >> ${CONFIG_FILE} ;;
+ esac
fi
- path_attr="`printenv ${mod}_ROOT_DIR`"
- echo " <module name=\"${mod}\" gui=\"${gui_attr}\" path=\"${path_attr}\"/>" >> ${CONFIG_FILE}
done
# end <modules> tag
echo "</application>" >> ${CONFIG_FILE}
# copy resulting confuguration file to the KERNEL module
-if [ -n ${PRODUCT_DIR} ] && [ -d ${PRODUCT_DIR} ] ; then
+if [ -n "${PRODUCT_DIR}" ] && [ -d ${PRODUCT_DIR} ] ; then
cp -f ${CONFIG_FILE} ${PRODUCT_DIR}/bin/salome
fi