]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
SALOME 6.5.0 preparation: cmake 2.8.4 -> 2.8.7
authorinv <inv@opencascade.com>
Fri, 30 Mar 2012 14:54:32 +0000 (14:54 +0000)
committerinv <inv@opencascade.com>
Fri, 30 Mar 2012 14:54:32 +0000 (14:54 +0000)
13 files changed:
config_CentOS_5.5_64bit.xml
config_Debian_4.0.xml
config_Debian_4.0_64bit.xml
config_Debian_5.0_64bit.xml
config_Debian_6.0_64bit.xml
config_Mandriva_2008.0.xml
config_Mandriva_2008.0_64bit.xml
config_Mandriva_2010.0.xml
config_Mandriva_2010.0_64bit.xml
config_Red_Hat_Enterprise_WS_4_64bit.xml
config_Scientific_SL_5.1_64bit.xml
config_files/cmake-2.8.4.sh [deleted file]
config_files/cmake.sh [new file with mode: 0755]

index 68ff4318f874ed0c7ef4254859a4fd8517d3d01f..fe2903902761cc2c9cd2f22cf7e413ed56789b4a 100755 (executable)
             type="prerequisite"
             description="The cross-platform, open-source make system">
       <installation os="CentOS 5.5 64bit"
-                    version="2.8.4
+                    version="2.8.7
                    disable="false"
                    installdiskspace="34168,23512,158888"
-                   script="cmake-2.8.4.sh"/>
+                   script="cmake.sh"/>
     </product>
     <product name="gl2ps"
             type="prerequisite"
index 81764e3fc45a1f6eed5c4f447e8ed367f55fbde7..069bab3669d3c2440a4b7a0ee64023d50d1eaeca 100755 (executable)
             type="prerequisite"
             description="The cross-platform, open-source make system">
       <installation os="Debian 4.0"
-                    version="2.8.4
+                    version="2.8.7
                    disable="false"
                    installdiskspace="34168,23512,158888"
-                   script="cmake-2.8.4.sh"/>
+                   script="cmake.sh"/>
     </product>
     <product name="gl2ps"
             type="prerequisite"
index cb7ae032120526d441623b59f5bbe21a4f7199f5..5961e09d0e4a02289947cd9777e8e615f0398513 100755 (executable)
             type="prerequisite"
             description="The cross-platform, open-source make system">
       <installation os="Debian 4.0 64bit"
-                    version="2.8.4
+                    version="2.8.7
                    disable="false"
                    installdiskspace="34168,23512,158888"
-                   script="cmake-2.8.4.sh"/>
+                   script="cmake.sh"/>
     </product>
     <product name="gl2ps"
             type="prerequisite"
index e891149df7d51704c518dec54c833abc0d455681..93979ddd388a5692b54d3c543ab681c3f4217509 100755 (executable)
             type="prerequisite"
             description="The cross-platform, open-source make system">
       <installation os="Debian 5.0 64bit"
-                    version="2.8.4
+                    version="2.8.7
                    disable="false"
                    installdiskspace="34168,23512,158888"
-                   script="cmake-2.8.4.sh"/>
+                   script="cmake.sh"/>
     </product>
     <product name="gl2ps"
             type="prerequisite"
index eac4461798e73225a9fb7089353b38c478115096..9f6c1aab2d4969d806de890cedde3da342e91376 100755 (executable)
             type="prerequisite"
             description="The cross-platform, open-source make system">
       <installation os="Debian 6.0 64bit"
-                    version="2.8.4
+                    version="2.8.7
                    disable="false"
                    installdiskspace="34168,23512,158888"
-                   script="cmake-2.8.4.sh"/>
+                   script="cmake.sh"/>
     </product>
     <product name="gl2ps"
             type="prerequisite"
index cff5942e6d00652881f7745d31a999661c6a4162..6acb39e9c4dd3c30c1a4e4870cf3f571cac2093e 100755 (executable)
             type="prerequisite"
             description="The cross-platform, open-source make system">
       <installation os="Mandriva 2008.0"
-                    version="2.8.4
+                    version="2.8.7
                    disable="false"
                    installdiskspace="34168,23512,158888"
-                   script="cmake-2.8.4.sh"/>
+                   script="cmake.sh"/>
     </product>
     <product name="gl2ps"
             type="prerequisite"
index 46e474156ca40d4bda7ef3d1ad3ddc92f3b59261..962ea8cee44b26831f10ffbd4cb4f2f3a4ee2850 100755 (executable)
             type="prerequisite"
             description="The cross-platform, open-source make system">
       <installation os="Mandriva 2008.0 64bit"
-                    version="2.8.4
+                    version="2.8.7
                    disable="false"
                    installdiskspace="34168,23512,158888"
-                   script="cmake-2.8.4.sh"/>
+                   script="cmake.sh"/>
     </product>
     <product name="gl2ps"
             type="prerequisite"
index e80392a17265a97a85dbab325e168eac62e240dc..01c96c10986ea03b1e826829c808febd8df1452c 100755 (executable)
             type="prerequisite"
             description="The cross-platform, open-source make system">
       <installation os="Mandriva 2010.0"
-                    version="2.8.4
+                    version="2.8.7
                    disable="false"
                    installdiskspace="34168,23512,158888"
-                   script="cmake-2.8.4.sh"/>
+                   script="cmake.sh"/>
     </product>
     <product name="gl2ps"
             type="prerequisite"
index 389c260712be70feab43045227d57dfcc927dfa6..eaf82dc38be796f9a09e6e8e01c7dc781f042d62 100755 (executable)
             type="prerequisite"
             description="The cross-platform, open-source make system">
       <installation os="Mandriva 2010.0 64bit"
-                    version="2.8.4
+                    version="2.8.7
                    disable="false"
                    installdiskspace="34168,23512,158888"
-                   script="cmake-2.8.4.sh"/>
+                   script="cmake.sh"/>
     </product>
     <product name="gl2ps"
             type="prerequisite"
index 0db4b4c959eec0e574fa29c7c86f562ab9bc7920..0df401fd6e96c4480d603de0c8f1a60adf7d1282 100755 (executable)
             type="prerequisite"
             description="The cross-platform, open-source make system">
       <installation os="Red Hat Enterprise WS 4 64bit"
-                    version="2.8.4
+                    version="2.8.7
                    disable="false"
                    installdiskspace="34168,23512,158888"
-                   script="cmake-2.8.4.sh"/>
+                   script="cmake.sh"/>
     </product>
     <product name="gl2ps"
             type="prerequisite"
index 84b0c2e0b8a20938f51f78ef64eeefbad6028ac6..da121d5ec4f3d1ddfd93d13f8bde8a622498cfee 100755 (executable)
             type="prerequisite"
             description="The cross-platform, open-source make system">
       <installation os="Scientific SL 5.1 64bit"
-                    version="2.8.4
+                    version="2.8.7
                    disable="false"
                    installdiskspace="34168,23512,158888"
-                   script="cmake-2.8.4.sh"/>
+                   script="cmake.sh"/>
     </product>
     <product name="gl2ps"
             type="prerequisite"
diff --git a/config_files/cmake-2.8.4.sh b/config_files/cmake-2.8.4.sh
deleted file mode 100755 (executable)
index 3b9e164..0000000
+++ /dev/null
@@ -1,125 +0,0 @@
-#!/bin/bash -noprofile
-
-####################################################################################
-#  File      : cmake-2.8.4.sh
-#  Created   : Thu Dec 18 12:01:00 2002
-#  Author    : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
-#  Project   : SALOME
-#  Module    : Installation Wizard
-#  Copyright : 2002-2008 CEA
-#
-#  This script is the part of the SALOME installation procedure.
-#
-####################################################################################
-
-CMAKE_VERSION=2.8.4
-
-check_version()
-{
-# It is not necessary to check version!
-return 0
-}
-
-print_env_bin()
-{
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
-#$DELIM ${PRODUCT_TYPE} $DELIM
-export CMAKEHOME=\${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}
-export PATH=\${CMAKEHOME}/bin:\${PATH}
-##
-EOF
-(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
-make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
-}
-
-print_env_src()
-{
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <<EOF
-#$DELIM ${PRODUCT_TYPE}_src $DELIM
-# nothing to do
-##
-EOF
-(test -w ${PRODUCT_SRC_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh ${PRODUCT_SRC_DIR})
-make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
-}
-
-try_preinstalled(){
-try_existing ${PRODUCT_DIR} ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
-try_existing ${PRODUCT_SRC_DIR} ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
-return $?
-}
-
-install_source()
-{
-make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
-source ${INSTALL_WORK}/$SHRC
-
-check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${INST_ROOT}
-
-# to generate environment scripts
-try_preinstalled
-}
-
-install_source_and_build()
-{
-# install sources
-install_source
-
-# build sources
-test -z ${SINGLE_DIR} && makedir ${PRODUCT_DIR} || mkdir -p ${PRODUCT_DIR}
-
-cd ${PRODUCT_SRC_DIR}
-
-chmod +w ./configure
-#INV - bug in a cmake configure 
-cp configure configure.orig && sed "s/relid'/relid/" configure.orig > configure
-chmod 755 ./configure
-
-check_job ${PRODUCT_DIR}/CONFIGURE.LOG ./configure --prefix=${PRODUCT_DIR}
-cat >> ${PRODUCT_DIR}/MAKE.LOG <<EOF
-used gcc=$GCC
-EOF
-check_job ${PRODUCT_DIR}/MAKE.LOG make
-check_job ${PRODUCT_DIR}/MAKEINSTALL.LOG make install
-
-cd ${PRODUCT_DIR};
-
-# remove sources and temporary files after building
-if [ ${REMOVE_SRC_TMP} == "TRUE" ] ; then
-    test -d ${PRODUCT_SRC_DIR} && rm -fr ${PRODUCT_SRC_DIR}
-fi
-
-# to generate environment scripts
-try_preinstalled
-}
-
-install_binary()
-{
-make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
-source ${INSTALL_WORK}/$SHRC
-
-# create a product directory
-test -z ${SINGLE_DIR} && makedir ${PRODUCT_DIR} || mkdir -p ${PRODUCT_DIR}
-
-  check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${PRODUCT_DIR}
-
-# to generate environment script for sources
-try_preinstalled
-}
-
-export PROCEDURE=$1;
-export INSTALL_WORK=$2;
-export SOURCE_DIR=$3;
-export INST_ROOT=$4;
-export PRODUCT_SEQUENCE=$5;
-export PRODUCT_TYPE=$6;
-export INSTALL_PRODUCTS=$7;
-shift
-REMOVE_SRC_TMP=$8;
-test $# == 10 && shift && SINGLE_DIR=$9
-export PRODUCT="cmake-${CMAKE_VERSION}"
-export PRODUCT_DIR=${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}
-export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
-export PRODUCT_SRC_DIR=${INST_ROOT}/${PRODUCT}_SRC
-source ./common.sh
-$PROCEDURE 
diff --git a/config_files/cmake.sh b/config_files/cmake.sh
new file mode 100755 (executable)
index 0000000..84a7b9f
--- /dev/null
@@ -0,0 +1,120 @@
+#!/bin/bash -noprofile
+
+####################################################################################
+#  File      : cmake.sh
+#  Created   : Thu Dec 18 12:01:00 2002
+#  Author    : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
+#  Project   : SALOME
+#  Module    : Installation Wizard
+#  Copyright : 2002-2012 CEA
+#
+#  This script is the part of the SALOME installation procedure.
+#
+####################################################################################
+
+CMAKE_VERSION=2.8.7
+
+check_version()
+{
+# It is not necessary to check version!
+return 0
+}
+
+print_env_bin()
+{
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export CMAKEHOME=\${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}
+export PATH=\${CMAKEHOME}/bin:\${PATH}
+##
+EOF
+(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
+make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
+}
+
+print_env_src()
+{
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <<EOF
+#$DELIM ${PRODUCT_TYPE}_src $DELIM
+# nothing to do
+##
+EOF
+(test -w ${PRODUCT_SRC_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh ${PRODUCT_SRC_DIR})
+make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
+}
+
+try_preinstalled(){
+try_existing ${PRODUCT_DIR} ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
+try_existing ${PRODUCT_SRC_DIR} ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
+return $?
+}
+
+install_source()
+{
+make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
+source ${INSTALL_WORK}/$SHRC
+
+check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${INST_ROOT}
+
+# to generate environment scripts
+try_preinstalled
+}
+
+install_source_and_build()
+{
+# install sources
+install_source
+
+# build sources
+test -z ${SINGLE_DIR} && makedir ${PRODUCT_DIR} || mkdir -p ${PRODUCT_DIR}
+
+cd ${PRODUCT_SRC_DIR}
+
+check_job ${PRODUCT_DIR}/CONFIGURE.LOG ./configure --prefix=${PRODUCT_DIR}
+cat >> ${PRODUCT_DIR}/MAKE.LOG <<EOF
+used gcc=$GCC
+EOF
+check_job ${PRODUCT_DIR}/MAKE.LOG make
+check_job ${PRODUCT_DIR}/MAKEINSTALL.LOG make install
+
+cd ${PRODUCT_DIR};
+
+# remove sources and temporary files after building
+if [ ${REMOVE_SRC_TMP} == "TRUE" ] ; then
+    test -d ${PRODUCT_SRC_DIR} && rm -fr ${PRODUCT_SRC_DIR}
+fi
+
+# to generate environment scripts
+try_preinstalled
+}
+
+install_binary()
+{
+make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
+source ${INSTALL_WORK}/$SHRC
+
+# create a product directory
+test -z ${SINGLE_DIR} && makedir ${PRODUCT_DIR} || mkdir -p ${PRODUCT_DIR}
+
+  check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${PRODUCT_DIR}
+
+# to generate environment script for sources
+try_preinstalled
+}
+
+export PROCEDURE=$1;
+export INSTALL_WORK=$2;
+export SOURCE_DIR=$3;
+export INST_ROOT=$4;
+export PRODUCT_SEQUENCE=$5;
+export PRODUCT_TYPE=$6;
+export INSTALL_PRODUCTS=$7;
+shift
+REMOVE_SRC_TMP=$8;
+test $# == 10 && shift && SINGLE_DIR=$9
+export PRODUCT="cmake-${CMAKE_VERSION}"
+export PRODUCT_DIR=${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}
+export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
+export PRODUCT_SRC_DIR=${INST_ROOT}/${PRODUCT}_SRC
+source ./common.sh
+$PROCEDURE