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

index 4ecc4fc00224db5575678b5e89ef554c34bb3f10..36f080256063e00e6fae0900521ab6f68f0838b2 100755 (executable)
                     version="1.3.40" 
                    disable="false"
                    installdiskspace="3923,11661,31647"
-                   script="SWIG-1.3.40.sh"/>
+                   script="swig.sh"/>
     </product>
     <product name="freetype"
             type="prerequisite"
index e7e964a500dbe18323743e237851b2a7245df207..ae42fa622551eac7249389b1f90bc300c7b5002e 100755 (executable)
                     version="1.3.40" 
                    disable="false"
                    installdiskspace="3923,11661,31647"
-                   script="SWIG-1.3.40.sh"/>
+                   script="swig.sh"/>
     </product>
     <product name="freetype"
             type="prerequisite"
index 84e99c4372bdbfdd3373eab2dc87603798168050..6a2904eba3f4de5f80efb87d1461912ed827877c 100755 (executable)
                     version="1.3.40" 
                    disable="false"
                    installdiskspace="3923,11661,31647"
-                   script="SWIG-1.3.40.sh"/>
+                   script="swig.sh"/>
     </product>
     <product name="freetype"
             type="prerequisite"
index 33b39ab0f0b1132e85de2071afa23eeb3014f507..21133f7ffa0fd53abaf03e01ab0d0a3bfc0fc6f7 100755 (executable)
                     version="1.3.40" 
                    disable="false"
                    installdiskspace="3923,11661,31647"
-                   script="SWIG-1.3.40.sh"/>
+                   script="swig.sh"/>
     </product>
     <product name="freetype"
             type="prerequisite"
index d4cf98b63f21173163c266a1630e0caa74c19d25..be01137fc11932a0c3161259159abba261a88f46 100755 (executable)
                     version="1.3.40" 
                    disable="false"
                    installdiskspace="3923,11661,31647"
-                   script="SWIG-1.3.40.sh"/>
+                   script="swig.sh"/>
     </product>
     <product name="freetype"
             type="prerequisite"
index b5ccc81261f56b17d5d4bcebc702baa46a6bcc0d..ffd5efa7d466bb68f2a8466e3c09d3c2cac9b317 100755 (executable)
                     version="1.3.40" 
                    disable="false"
                    installdiskspace="3923,11661,31647"
-                   script="SWIG-1.3.40.sh"/>
+                   script="swig.sh"/>
     </product>
     <product name="freetype"
             type="prerequisite"
index 1a752ba7988e512801cef087a6b248eb36cc908d..73307612aff1abe8da491b6e19027b66c5b0df6c 100755 (executable)
                     version="1.3.40" 
                    disable="false"
                    installdiskspace="3923,11661,31647"
-                   script="SWIG-1.3.40.sh"/>
+                   script="swig.sh"/>
     </product>
     <product name="freetype"
             type="prerequisite"
index 9fd953b1a6ebb2c9fc873a8ac05a3d0cb6821809..bf8db0d7c51f786a6954972dbaa6a4ceb7610448 100755 (executable)
                     version="1.3.40" 
                    disable="false"
                    installdiskspace="3923,11661,31647"
-                   script="SWIG-1.3.40.sh"/>
+                   script="swig.sh"/>
     </product>
     <product name="freetype"
             type="prerequisite"
index 942364c7dd641fd717813ac4e3e157606f411ad1..fa3e77191346268a0fe2131a762bc1a4f03ed99c 100755 (executable)
                     version="1.3.40" 
                    disable="false"
                    installdiskspace="3923,11661,31647"
-                   script="SWIG-1.3.40.sh"/>
+                   script="swig.sh"/>
     </product>
     <product name="freetype"
             type="prerequisite"
index 485c03ab33508c9101d1287d76c7bfa595042965..e677ef0cf0dc5e78e196eae4784123316e0ef46b 100755 (executable)
                     version="1.3.40" 
                    disable="false"
                    installdiskspace="3923,11661,31647"
-                   script="SWIG-1.3.40.sh"/>
+                   script="swig.sh"/>
     </product>
     <product name="freetype"
             type="prerequisite"
index bc62a52b9b341f965936448a71983d38e16227a5..8ccd440da4cf1755e2327cf5ae98baf08ba7a79d 100755 (executable)
                     version="1.3.40" 
                    disable="false"
                    installdiskspace="3923,11661,31647"
-                   script="SWIG-1.3.40.sh"/>
+                   script="swig.sh"/>
     </product>
     <product name="freetype"
             type="prerequisite"
diff --git a/config_files/SWIG-1.3.40.sh b/config_files/SWIG-1.3.40.sh
deleted file mode 100755 (executable)
index 3b3f808..0000000
+++ /dev/null
@@ -1,132 +0,0 @@
-#!/bin/bash -noprofile
-
-####################################################################################
-#  File      : SWIG-1.3.40.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.
-#
-####################################################################################
-
-SWIG_VERSION=1.3.40
-
-check_version(){
-if [ -n "`which swig 2>/dev/null`" ]; then
-    ver=`swig -version 2>&1 | grep -i version | awk '{ print $3 }' | sed -e 's/^\([0-9.]*\)\(.*\)/\1/'`
-    if [ "$ver" == "${SWIG_VERSION}" ] ;  then 
-       return 0;
-    fi
-fi
-return 1;
-}
-
-print_env_bin()
-{
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
-#$DELIM ${PRODUCT_TYPE} $DELIM 
-export SWIG_ROOT=\${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}
-export PATH=\${SWIG_ROOT}/bin:\${PATH}
-export SWIG_LIB=\${SWIG_ROOT}/share/swig/${SWIG_VERSION}
-##
-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 ${SRC_DIR}/${PRODUCT}.tar.gz -C ${INST_ROOT}
-
-# to generate environment scripts
-try_preinstalled
-}
-
-install_source_and_build()
-{
-# install sources
-install_source
-
-# build sources
-if test `uname -m` = "x86_64" ; then
-export CFLAGS=-m64 
-export CXXFLAGS=-m64
-fi
-
-cd ${PRODUCT_SRC_DIR}
-test -z ${SINGLE_DIR} && makedir ${PRODUCT_DIR} || mkdir -p ${PRODUCT_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}/INSTALL.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;
-SRC_DIR=$8;
-shift
-REMOVE_SRC_TMP=$8;
-test $# == 10 && shift && SINGLE_DIR=$9
-export PRODUCT="SWIG-${SWIG_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/swig.sh b/config_files/swig.sh
new file mode 100755 (executable)
index 0000000..1bac099
--- /dev/null
@@ -0,0 +1,134 @@
+#!/bin/bash -noprofile
+
+####################################################################################
+#  File      : swig.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.
+#
+####################################################################################
+
+#
+# swig version
+#
+SWIG_VERSION=1.3.40
+
+check_version(){
+if [ -n "`which swig 2>/dev/null`" ]; then
+    ver=`swig -version 2>&1 | grep -i version | awk '{ print $3 }' | sed -e 's/^\([0-9.]*\)\(.*\)/\1/'`
+    if [ "$ver" == "${SWIG_VERSION}" ] ;  then 
+       return 0;
+    fi
+fi
+return 1;
+}
+
+print_env_bin()
+{
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+#$DELIM ${PRODUCT_TYPE} $DELIM 
+export SWIG_ROOT=\${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}
+export PATH=\${SWIG_ROOT}/bin:\${PATH}
+export SWIG_LIB=\${SWIG_ROOT}/share/swig/${SWIG_VERSION}
+##
+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 ${SRC_DIR}/${PRODUCT}.tar.gz -C ${INST_ROOT}
+
+# to generate environment scripts
+try_preinstalled
+}
+
+install_source_and_build()
+{
+# install sources
+install_source
+
+# build sources
+if test `uname -m` = "x86_64" ; then
+export CFLAGS=-m64 
+export CXXFLAGS=-m64
+fi
+
+cd ${PRODUCT_SRC_DIR}
+test -z ${SINGLE_DIR} && makedir ${PRODUCT_DIR} || mkdir -p ${PRODUCT_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}/INSTALL.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;
+SRC_DIR=$8;
+shift
+REMOVE_SRC_TMP=$8;
+test $# == 10 && shift && SINGLE_DIR=$9
+export PRODUCT="swig-${SWIG_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