From: vsr Date: Tue, 24 Dec 2013 05:54:27 +0000 (+0000) Subject: SALOME 7.3.0 preparation : change create_config.sh script X-Git-Tag: V7_3_0~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5fdba3856a31a6ee87325fe858b3f05bcf7fdaeb;p=tools%2Finstall.git SALOME 7.3.0 preparation : change create_config.sh script --- diff --git a/config_files/KERNEL.sh b/config_files/KERNEL.sh index 1e0a5ed..f417f1e 100755 --- a/config_files/KERNEL.sh +++ b/config_files/KERNEL.sh @@ -141,7 +141,7 @@ if [ -f ${PRODUCT_DIR}/bin/salome/createAppli.sh ] ; then 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} } diff --git a/config_files/create_config.sh b/config_files/create_config.sh index 8dc80eb..1e8832a 100755 --- a/config_files/create_config.sh +++ b/config_files/create_config.sh @@ -44,17 +44,17 @@ echo " " >> ${CONFIG_FILE echo " " >> ${CONFIG_FILE} # for each module create 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 " " >> ${CONFIG_FILE} ;; + * ) echo " " >> ${CONFIG_FILE} ;; + esac fi - path_attr="`printenv ${mod}_ROOT_DIR`" - echo " " >> ${CONFIG_FILE} done # end tag @@ -69,6 +69,6 @@ fi echo "" >> ${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