]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
SALOME 6.5.0 preparation: update script for expat (2.0.1)
authorinv <inv@opencascade.com>
Tue, 3 Apr 2012 16:35:26 +0000 (16:35 +0000)
committerinv <inv@opencascade.com>
Tue, 3 Apr 2012 16:35:26 +0000 (16:35 +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/expat-2.0.1.sh [deleted file]
config_files/expat.sh [new file with mode: 0755]

index 8f73384119458d14081f1b3b6c6bb4e0c38fb1a1..4ecc4fc00224db5575678b5e89ef554c34bb3f10 100755 (executable)
                     version="2.0.1" 
                    disable="false"
                    installdiskspace="880,2480,5412"
-                   script="expat-2.0.1.sh"/>
+                   script="expat.sh"/>
     </product>
     <product name="Graphviz"
             type="prerequisite"
index 346913546c9bf863f91dcd38ff59c7bd0f7ddab2..e7e964a500dbe18323743e237851b2a7245df207 100755 (executable)
                     version="2.0.1" 
                    disable="false"
                    installdiskspace="880,2480,5412"
-                   script="expat-2.0.1.sh"/>
+                   script="expat.sh"/>
     </product>
     <product name="Graphviz"
             type="prerequisite"
index 9b66199702be3ee022478c229fcd25734a50616d..84e99c4372bdbfdd3373eab2dc87603798168050 100755 (executable)
                     version="2.0.1" 
                    disable="false"
                    installdiskspace="880,2480,5412"
-                   script="expat-2.0.1.sh"/>
+                   script="expat.sh"/>
     </product>
     <product name="Graphviz"
             type="prerequisite"
index 3a3225467cf30563d9d101227faec5324de6576e..33b39ab0f0b1132e85de2071afa23eeb3014f507 100755 (executable)
                     version="2.0.1" 
                    disable="false"
                    installdiskspace="880,2480,5412"
-                   script="expat-2.0.1.sh"/>
+                   script="expat.sh"/>
     </product>
     <product name="Graphviz"
             type="prerequisite"
index 9c061d44d65bca65b33cb08297f51a06f29fbec9..d4cf98b63f21173163c266a1630e0caa74c19d25 100755 (executable)
                     version="2.0.1" 
                    disable="false"
                    installdiskspace="880,2480,5412"
-                   script="expat-2.0.1.sh"/>
+                   script="expat.sh"/>
     </product>
     <product name="Graphviz"
             type="prerequisite"
index de0bfc3b20eb4138eb63c13e0c6edf27ff75de5c..b5ccc81261f56b17d5d4bcebc702baa46a6bcc0d 100755 (executable)
                     version="2.0.1" 
                    disable="false"
                    installdiskspace="880,2480,5412"
-                   script="expat-2.0.1.sh"/>
+                   script="expat.sh"/>
     </product>
     <product name="Graphviz"
             type="prerequisite"
index 77f76bece9f72509c4212a87ad0cc2504a5f02c7..1a752ba7988e512801cef087a6b248eb36cc908d 100755 (executable)
                     version="2.0.1" 
                    disable="false"
                    installdiskspace="880,2480,5412"
-                   script="expat-2.0.1.sh"/>
+                   script="expat.sh"/>
     </product>
     <product name="Graphviz"
             type="prerequisite"
index 541b2740c7af5eaf454e63fad0b7d3b695b04b33..9fd953b1a6ebb2c9fc873a8ac05a3d0cb6821809 100755 (executable)
                     version="2.0.1" 
                    disable="false"
                    installdiskspace="880,2480,5412"
-                   script="expat-2.0.1.sh"/>
+                   script="expat.sh"/>
     </product>
     <product name="Graphviz"
             type="prerequisite"
index cc4ea4e1b4158c7db3914b117cfbf03a2252fc34..942364c7dd641fd717813ac4e3e157606f411ad1 100755 (executable)
                     version="2.0.1" 
                    disable="false"
                    installdiskspace="880,2480,5412"
-                   script="expat-2.0.1.sh"/>
+                   script="expat.sh"/>
     </product>
     <product name="Graphviz"
             type="prerequisite"
index 78ce7b5e5b5f354201d76b9b9513a5ea398d01bc..485c03ab33508c9101d1287d76c7bfa595042965 100755 (executable)
                     version="2.0.1" 
                    disable="false"
                    installdiskspace="880,2480,5412"
-                   script="expat-2.0.1.sh"/>
+                   script="expat.sh"/>
     </product>
     <product name="Graphviz"
             type="prerequisite"
index 117ee387ffa442454faaac60dc4bebed6f7755c6..bc62a52b9b341f965936448a71983d38e16227a5 100755 (executable)
                     version="2.0.1" 
                    disable="false"
                    installdiskspace="880,2480,5412"
-                   script="expat-2.0.1.sh"/>
+                   script="expat.sh"/>
     </product>
     <product name="Graphviz"
             type="prerequisite"
diff --git a/config_files/expat-2.0.1.sh b/config_files/expat-2.0.1.sh
deleted file mode 100755 (executable)
index 49a4019..0000000
+++ /dev/null
@@ -1,132 +0,0 @@
-#!/bin/bash -noprofile
-
-####################################################################################
-#  File      : expat-2.0.1.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.
-#
-####################################################################################
-
-#
-# expat version
-#
-EXPAT_VERSION=2.0.1
-
-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 EXPAT_ROOT=\${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}
-export PATH=\${EXPAT_ROOT}/bin:\${PATH}
-export LD_LIBRARY_PATH=\${EXPAT_ROOT}/lib:\${LD_LIBRARY_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
-
-# unpack
-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}
-
-# install
-cd ${PRODUCT_SRC_DIR}
-check_job ${PRODUCT_DIR}/CONFIGURE.LOG \
-./configure --prefix=${PRODUCT_DIR}
-GCC=`which gcc`
-cat >> ${PRODUCT_DIR}/MAKE.LOG <<EOF
-used gcc=$GCC
-EOF
-check_job ${PRODUCT_DIR}/MAKE.LOG make
-check_job ${PRODUCT_DIR}/MAKE.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}
-
-# modify libdir
-cd ${PRODUCT_DIR}/lib
-for l in `find $ldir -name "*.la"`; do
-sed -e "s%^libdir='\(.*\)'%libdir='${PRODUCT_DIR}/lib'%g" $l > $l"_"
-chmod -f --reference=$l $l"_" ; mv -f $l"_" $l
-done
-
-# 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="expat-${EXPAT_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/expat.sh b/config_files/expat.sh
new file mode 100755 (executable)
index 0000000..d9c81d2
--- /dev/null
@@ -0,0 +1,139 @@
+#!/bin/bash -noprofile
+
+####################################################################################
+#  File      : expat.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.
+#
+####################################################################################
+
+#
+# expat version
+#
+EXPAT_VERSION=2.0.1
+
+check_version(){
+if [ "$EXPAT_ROOT" != "" ] && [ -f ${EXPAT_ROOT}/include/expat.h ] ; then
+    ver_major=`grep "#define XML_MAJOR_VERSION" ${EXPAT_ROOT}/include/expat.h | awk '{print $3}'`
+    ver_minor=`grep "#define XML_MINOR_VERSION" ${EXPAT_ROOT}/include/expat.h | awk '{print $3}'`
+    ver_maint=`grep "#define XML_MICRO_VERSION" ${EXPAT_ROOT}/include/expat.h | awk '{print $3}'`
+    ver="$ver_major.$ver_minor.$ver_maint"
+    if [ "$ver" == "${EXPAT_VERSION}" ] ; then
+        return 0
+    fi
+fi
+return 1
+}
+
+print_env_bin(){
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export EXPAT_ROOT=\${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}
+export PATH=\${EXPAT_ROOT}/bin:\${PATH}
+export LD_LIBRARY_PATH=\${EXPAT_ROOT}/lib:\${LD_LIBRARY_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
+
+# unpack
+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}
+
+# install
+cd ${PRODUCT_SRC_DIR}
+check_job ${PRODUCT_DIR}/CONFIGURE.LOG ./configure --prefix=${PRODUCT_DIR}
+GCC=`which gcc`
+cat >> ${PRODUCT_DIR}/MAKE.LOG <<EOF
+used gcc=$GCC
+EOF
+check_job ${PRODUCT_DIR}/MAKE.LOG make
+check_job ${PRODUCT_DIR}/MAKE.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}
+
+# modify libdir
+cd ${PRODUCT_DIR}/lib
+for l in XXX `find $ldir -name "*.la"`; do
+    if [ "$l" == "XXX" ] ; then continue; fi
+    sed -i "s%^libdir='\(.*\)'%libdir='${PRODUCT_DIR}/lib'%g" $l
+done
+
+# 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="expat-${EXPAT_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