]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
Rename create_config.sh to create_application.sh
authorvsr <vsr@opencascade.com>
Mon, 26 May 2014 06:51:12 +0000 (10:51 +0400)
committervsr <vsr@opencascade.com>
Mon, 26 May 2014 06:51:12 +0000 (10:51 +0400)
config_files/KERNEL.sh
config_files/create_application.sh [new file with mode: 0755]
config_files/create_config.sh [deleted file]

index a57de851bb809c819853d5055000d1006fd2a5e2..00df5a76a88e3e81e41fe8a32546ee6f02ecd5d1 100755 (executable)
@@ -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_application.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_application.sh b/config_files/create_application.sh
new file mode 100755 (executable)
index 0000000..2facfd8
--- /dev/null
@@ -0,0 +1,74 @@
+#!/bin/bash -noprofile
+
+####################################################################################
+#  File      : create_config.sh
+#  Created   : Fri May 30 10:40:01 2008
+#  Author    : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
+#  Project   : SALOME
+#  Module    : Installation Wizard
+#  Copyright : 2002-2014 CEA
+#
+#  This script is the part of the SALOME installation procedure.
+#
+####################################################################################
+
+source ./common.sh
+
+export INST_ROOT=$1
+export INSTALL_WORK=$2
+export PRODUCT_SEQUENCE=$3
+export INSTALL_PRODUCTS=$4
+export PRODUCT_DIR=$5
+
+# --- configuration file ---
+CONFIG_FILE=${INSTALL_WORK}/config_appli.xml
+
+# create and source environment file
+make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
+source ${INSTALL_WORK}/${SHRC}
+
+# remove config file
+if [ -e ${CONFIG_FILE} ] ; then
+    rm ${CONFIG_FILE}
+fi
+# create empty config file
+touch ${CONFIG_FILE}
+
+# begin <application> tag
+echo "<application>" >> ${CONFIG_FILE}
+
+# <prerequisites> tag : path to the environment script
+echo "  <prerequisites path=\"${INST_ROOT}/env_products.sh\"/>" >> ${CONFIG_FILE}
+
+# begin <modules> tag
+echo "  <modules>" >> ${CONFIG_FILE}
+
+# for each module create <module> tag
+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
+done
+
+# end <modules> tag
+echo "  </modules>" >> ${CONFIG_FILE}
+
+# <samples> tag : path to the samples directory
+if [ -n ${DATA_DIR} ] && [ -d ${DATA_DIR} ] ; then
+    echo "  <samples path=\"${DATA_DIR}\"/>" >> ${CONFIG_FILE}
+fi
+
+# end <application> tag
+echo "</application>" >> ${CONFIG_FILE}
+
+# copy resulting confuguration file to the KERNEL module
+if [ -n "${PRODUCT_DIR}" ] && [ -d ${PRODUCT_DIR} ] ; then
+    cp -f ${CONFIG_FILE} ${PRODUCT_DIR}/bin/salome
+fi
diff --git a/config_files/create_config.sh b/config_files/create_config.sh
deleted file mode 100755 (executable)
index 2facfd8..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-#!/bin/bash -noprofile
-
-####################################################################################
-#  File      : create_config.sh
-#  Created   : Fri May 30 10:40:01 2008
-#  Author    : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
-#  Project   : SALOME
-#  Module    : Installation Wizard
-#  Copyright : 2002-2014 CEA
-#
-#  This script is the part of the SALOME installation procedure.
-#
-####################################################################################
-
-source ./common.sh
-
-export INST_ROOT=$1
-export INSTALL_WORK=$2
-export PRODUCT_SEQUENCE=$3
-export INSTALL_PRODUCTS=$4
-export PRODUCT_DIR=$5
-
-# --- configuration file ---
-CONFIG_FILE=${INSTALL_WORK}/config_appli.xml
-
-# create and source environment file
-make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
-source ${INSTALL_WORK}/${SHRC}
-
-# remove config file
-if [ -e ${CONFIG_FILE} ] ; then
-    rm ${CONFIG_FILE}
-fi
-# create empty config file
-touch ${CONFIG_FILE}
-
-# begin <application> tag
-echo "<application>" >> ${CONFIG_FILE}
-
-# <prerequisites> tag : path to the environment script
-echo "  <prerequisites path=\"${INST_ROOT}/env_products.sh\"/>" >> ${CONFIG_FILE}
-
-# begin <modules> tag
-echo "  <modules>" >> ${CONFIG_FILE}
-
-# for each module create <module> tag
-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
-done
-
-# end <modules> tag
-echo "  </modules>" >> ${CONFIG_FILE}
-
-# <samples> tag : path to the samples directory
-if [ -n ${DATA_DIR} ] && [ -d ${DATA_DIR} ] ; then
-    echo "  <samples path=\"${DATA_DIR}\"/>" >> ${CONFIG_FILE}
-fi
-
-# end <application> tag
-echo "</application>" >> ${CONFIG_FILE}
-
-# copy resulting confuguration file to the KERNEL module
-if [ -n "${PRODUCT_DIR}" ] && [ -d ${PRODUCT_DIR} ] ; then
-    cp -f ${CONFIG_FILE} ${PRODUCT_DIR}/bin/salome
-fi