From: admin Date: Tue, 16 Dec 2008 08:33:57 +0000 (+0000) Subject: This commit was generated by cvs2git to create tag 'V5_1_0'. X-Git-Tag: V5_1_0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=30abecf8f94644e26c5b9a4fcb1ad306cad9a604;p=tools%2Finstall.git This commit was generated by cvs2git to create tag 'V5_1_0'. Sprout from SALOME_5 2008-12-16 08:33:56 UTC maintenance team 'HXX2SALOME adding' Delete: bin/SALOME_InstallWizard bin/lib/libICE.so.6 bin/lib/libICE.so.6.3 bin/lib/libSM.so.6 bin/lib/libSM.so.6.0 bin/lib/libX11.so.6 bin/lib/libX11.so.6.2 bin/lib/libXext.so.6 bin/lib/libXext.so.6.4 bin/lib/libXrender.so.1 bin/lib/libXrender.so.1.1 config_files/BLSURFPLUGIN.sh config_files/BOOST-1.34.1.sh config_files/CALCULATOR.sh config_files/CAS-6.3-patch.sh config_files/CAS-6.3.sh config_files/COMPONENT.sh config_files/DEBIANFORSALOME-3.1.sh config_files/DOCUMENTATION.sh config_files/FILTER.sh config_files/GEOM.sh config_files/GHS3DPLUGIN.sh config_files/GHS3DPRLPLUGIN.sh config_files/GUI.sh config_files/HELLO.sh config_files/HXX2SALOME.sh config_files/HXX2SALOMEDOC.sh config_files/HexoticPLUGIN.sh config_files/KERNEL.sh config_files/LIGHT.sh config_files/MED.sh config_files/MULTIPR.sh config_files/NETGENPLUGIN.sh config_files/Numeric-24.2.sh config_files/PYCALCULATOR.sh config_files/PYHELLO.sh config_files/PyQt-4.4.3.sh config_files/Python-2.4.4.sh config_files/RANDOMIZER.sh config_files/SAMPLES.sh config_files/SIERPINSKY.sh config_files/SMESH.sh config_files/SWIG-1.3.31.sh config_files/VISU.sh config_files/VTK-5.0.0.sh config_files/YACS.sh config_files/backupEnv.sh config_files/blsurf-2.7.12.sh config_files/build.csh config_files/build.sh config_files/cElementTree-1.0.5.sh config_files/checkFortran.sh config_files/checkSize.sh config_files/common.sh config_files/create_config.sh config_files/diskSpace.sh config_files/docutils-0.3.9.sh config_files/doxygen-1.5.6.sh config_files/elementtree-1.2.6.sh config_files/gcc-common.sh config_files/ghs3d-4.0.sh config_files/graphviz-2.16.1.sh config_files/hdf5-1.6.4.sh config_files/libxml2-2.6.27.sh config_files/med-2.3.5.sh config_files/metis-4.0.sh config_files/modifyLaFiles.sh config_files/netgen-4.5.sh config_files/omniORB-4.1.0.sh config_files/patches/netgen-4.5-for-SALOME.patch config_files/patches/netgen-4.5-lib64.patch config_files/patches/omniNotify-2.1-lib64.patch config_files/patches/python_patch_lib64.patch config_files/qscintilla-2.3.sh config_files/qt-4.4.3.sh config_files/qwt-5.1.1.sh config_files/release_notes.sh config_files/remove_tmp.sh config_files/scotch-4.0.sh config_files/sip-4.7.7.sh config_files/start_salome.sh config_files/tcltk-8.4.14.sh config_files/xdata-0.6.3.sh doc/application.png doc/batchmode.png doc/choicepage.png doc/directorypage.png doc/installtypepage.png doc/intropage.png doc/logocorp.png doc/platformpage.png doc/productpage1.png doc/productpage2.png doc/productpage3.png doc/productpage4.png doc/progresspage1.png doc/progresspage2.png doc/readme.html doc/readmepage.png src/InstallWizard.cpp src/InstallWizard.h src/LICENSE.QPL src/Makefile src/README.txt src/SALOME_HelpWindow.cxx src/SALOME_HelpWindow.hxx src/SALOME_INSTALL.pro src/SALOME_InstallWizard.cxx src/SALOME_InstallWizard.hxx src/SALOME_ProductsView.cxx src/SALOME_ProductsView.hxx src/SALOME_ProgressView.cxx src/SALOME_ProgressView.hxx src/SALOME_XmlHandler.cxx src/SALOME_XmlHandler.hxx src/env.csh src/globals.h src/icons.cxx src/icons.h src/main.cxx --- diff --git a/bin/SALOME_InstallWizard b/bin/SALOME_InstallWizard deleted file mode 100755 index 0ceb9d5..0000000 Binary files a/bin/SALOME_InstallWizard and /dev/null differ diff --git a/bin/lib/libICE.so.6 b/bin/lib/libICE.so.6 deleted file mode 100755 index 4c8d403..0000000 Binary files a/bin/lib/libICE.so.6 and /dev/null differ diff --git a/bin/lib/libICE.so.6.3 b/bin/lib/libICE.so.6.3 deleted file mode 100755 index 4c8d403..0000000 Binary files a/bin/lib/libICE.so.6.3 and /dev/null differ diff --git a/bin/lib/libSM.so.6 b/bin/lib/libSM.so.6 deleted file mode 100755 index 0583c47..0000000 Binary files a/bin/lib/libSM.so.6 and /dev/null differ diff --git a/bin/lib/libSM.so.6.0 b/bin/lib/libSM.so.6.0 deleted file mode 100755 index 0583c47..0000000 Binary files a/bin/lib/libSM.so.6.0 and /dev/null differ diff --git a/bin/lib/libX11.so.6 b/bin/lib/libX11.so.6 deleted file mode 100755 index 05d99b0..0000000 Binary files a/bin/lib/libX11.so.6 and /dev/null differ diff --git a/bin/lib/libX11.so.6.2 b/bin/lib/libX11.so.6.2 deleted file mode 100755 index 05d99b0..0000000 Binary files a/bin/lib/libX11.so.6.2 and /dev/null differ diff --git a/bin/lib/libXext.so.6 b/bin/lib/libXext.so.6 deleted file mode 100755 index aa92d82..0000000 Binary files a/bin/lib/libXext.so.6 and /dev/null differ diff --git a/bin/lib/libXext.so.6.4 b/bin/lib/libXext.so.6.4 deleted file mode 100755 index aa92d82..0000000 Binary files a/bin/lib/libXext.so.6.4 and /dev/null differ diff --git a/bin/lib/libXrender.so.1 b/bin/lib/libXrender.so.1 deleted file mode 100755 index 12a9c34..0000000 Binary files a/bin/lib/libXrender.so.1 and /dev/null differ diff --git a/bin/lib/libXrender.so.1.1 b/bin/lib/libXrender.so.1.1 deleted file mode 100755 index 12a9c34..0000000 Binary files a/bin/lib/libXrender.so.1.1 and /dev/null differ diff --git a/config_files/BLSURFPLUGIN.sh b/config_files/BLSURFPLUGIN.sh deleted file mode 100755 index 8fd5050..0000000 --- a/config_files/BLSURFPLUGIN.sh +++ /dev/null @@ -1,161 +0,0 @@ -#!/bin/bash -noprofile - -#################################################################################### -# File : BLSURFPLUGIN.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. -# -#################################################################################### - -check_version(){ -if [ -n "${BLSURFPLUGIN_ROOT_DIR}" ]; then - if [ -f ${BLSURFPLUGIN_ROOT_DIR}/bin/salome/VERSION ]; then - ver=`cat ${BLSURFPLUGIN_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $NF}' | tr -d '[:space:]' ` - if [ "$ver" = "${SALOME_VERSION}" ]; then - return 0 - fi - fi -elif [ -n "${BLSURFPLUGIN_SRC_DIR}" ]; then -check_version(){ - check_salome_src_version BLSURFPLUGIN_SRC_DIR - if [ $? -eq 0 ] ; then return 0 ; fi - return 1 -} -fi -return 1 -} - -print_env_bin(){ -if [ `uname -m` = "x86_64" ] && [ -d ${PRODUCT_DIR}/lib64 ] ; then - LIB_PREFIX=64 -elif [ -d ${PRODUCT_DIR}/lib ] ; then - LIB_PREFIX="" -else - LIB_PREFIX=64 -fi -cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < Jambase - -GCC=`which gcc` -cat >> ${PRODUCT_DIR}/BUILD.LOG < ./tools/jam/src/${binfolder}/bjam ${OPTIONS} >> ${PRODUCT_DIR}/INSTALL.LOG" -./tools/jam/src/${binfolder}/bjam ${OPTIONS} >> ${PRODUCT_DIR}/INSTALL.LOG 2> $INSTALL_WORK/errlog - -if [ "$?" -ne "0" ] ; then - cat ${PRODUCT_DIR}/INSTALL.LOG - cat $INSTALL_WORK/errlog >&2 - cat $INSTALL_WORK/errlog >> ${PRODUCT_DIR}/INSTALL.LOG -fi - -# move includes -cd ${PRODUCT_DIR}/include -mv -f boost-1_34_1/boost boost -rm -rf boost-1_34_1 - -# create additional links for libraries -cd ${PRODUCT_DIR}/lib - -gcc_root="`where_gcc $GCC_VERSION`" -gcc_root=`cd ${gcc_root}/..; pwd` -maj_ver=`${gcc_root}/bin/gcc -dumpversion | awk -F[.-] '{if(NF>0) print $1; else print 0}'` -min_ver=`${gcc_root}/bin/gcc -dumpversion | awk -F[.-] '{if(NF>1) print $2; else print 0}'` -gcc_ver=$maj_ver$min_ver - -for aLib in date_time filesystem prg_exec_monitor python regex signals test_exec_monitor thread unit_test_framework ; do - if [ -f libboost_${aLib}-gcc${gcc_ver}-mt-1_34_1.so ] ; then - ln -sf libboost_${aLib}-gcc${gcc_ver}-mt-1_34_1.so libboost_${aLib}-mt.so - fi -done - -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 scripts -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="boost-1.34.1" -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/CALCULATOR.sh b/config_files/CALCULATOR.sh deleted file mode 100755 index 24abaa5..0000000 --- a/config_files/CALCULATOR.sh +++ /dev/null @@ -1,158 +0,0 @@ -#!/bin/bash -noprofile - -#################################################################################### -# File : CALCULATOR.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. -# -#################################################################################### - -check_version(){ -if [ -n "${CALCULATOR_ROOT_DIR}" ]; then - check_lib_version VERSION ${CALCULATOR_ROOT_DIR}/bin/salome - if [ "$?" -eq "0" ]; then - ver=`cat ${CALCULATOR_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $2}' | tr -d '[:space:]' ` - if [ "$ver" = "${SALOME_VERSION}" ]; then - return 0 - fi - fi -elif [ -n "${CALCULATOR_SRC_DIR}" ]; then - check_salome_src_version CALCULATOR_SRC_DIR - if [ $? -eq 0 ] ; then return 0 ; fi - return 1 -fi -return 1 -} - -print_env_bin(){ - -if [ `uname -m` = "x86_64" ] && [ -d ${PRODUCT_DIR}/lib64 ] ; then - LIB_PREFIX=64 -elif [ -d ${PRODUCT_DIR}/lib ] ; then - LIB_PREFIX="" -else - LIB_PREFIX=64 -fi - -cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < _runAppli -sed -e "s%export CALCULATOR_ROOT_DIR=.*%export CALCULATOR_ROOT_DIR=${CALCULATOR_ROOT_DIR}%g" _runAppli > runAppli -rm -f _runAppli -chmod a+x runAppli - -# to generate environment scripts -try_preinstalled -} - -source ./common.sh - -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; -shift -SINGLE_DIR=$9; -if [ -n "$SINGLE_DIR" ] ; then SINGLE_DIR=$SDIR_NAME; fi -export PRODUCT="CALCULATOR_${SALOME_VERSION}" -export PRODUCT_SRC="CALCULATOR_SRC_${SALOME_VERSION}" -export PRODUCT_DIR=${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}} -export PRODUCT_SRC_DIR=${INST_ROOT}/${PRODUCT_SRC} -$PROCEDURE diff --git a/config_files/CAS-6.3-patch.sh b/config_files/CAS-6.3-patch.sh deleted file mode 100755 index e5aad7a..0000000 --- a/config_files/CAS-6.3-patch.sh +++ /dev/null @@ -1,134 +0,0 @@ -#!/bin/bash -noprofile - -#################################################################################### -# File : CAS-6.3.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. -# -#################################################################################### - -check_version() -{ -if [ -z "$CASROOT" ]; then - return 1 -fi -check_lib_version ${CASROOT}/inc/Standard_Version.hxx -if [ "$?" -ne "0" ] ; then - return 1 -fi -ver_major=`grep "#define OCC_VERSION_MAJOR" ${CASROOT}/inc/Standard_Version.hxx | awk '{print $3}'` -ver_minor=`grep "#define OCC_VERSION_MINOR" ${CASROOT}/inc/Standard_Version.hxx | awk '{print $3}'` -ver_maint=`grep "#define OCC_VERSION_MAINTENANCE" ${CASROOT}/inc/Standard_Version.hxx | awk '{print $3}'` -ver="$ver_major.$ver_minor.$ver_maint" -if [ "$ver" == "6.3" ] ; then - return 0 -fi -return 1 -} - -print_env_bin() -{ -cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <> ${PRODUCT_DIR}/MAKE-PATH.LOG < ${PRODUCT_DIR}/size.log -cd ${PRODUCT_DIR}; - -# remove sources and temporary files after building -if [ ${REMOVE_SRC_TMP} == "TRUE" ] ; then - test -d ${INST_ROOT}/${PRODUCT}-patch_SRC && rm -fr ${INST_ROOT}/${PRODUCT}-patch_SRC - 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 - -check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}-patch.tar.gz -C ${PRODUCT_DIR} - -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="CAS-6.3" -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/CAS-6.3.sh b/config_files/CAS-6.3.sh deleted file mode 100755 index a4506df..0000000 --- a/config_files/CAS-6.3.sh +++ /dev/null @@ -1,283 +0,0 @@ -#!/bin/bash -noprofile - -#################################################################################### -# File : CAS-6.3.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. -# -#################################################################################### - -check_version() -{ -if [ -z "$CASROOT" ]; then - return 1 -fi -check_lib_version ${CASROOT}/inc/Standard_Version.hxx -if [ "$?" -ne "0" ] ; then - return 1 -fi -ver_major=`grep "#define OCC_VERSION_MAJOR" ${CASROOT}/inc/Standard_Version.hxx | awk '{print $3}'` -ver_minor=`grep "#define OCC_VERSION_MINOR" ${CASROOT}/inc/Standard_Version.hxx | awk '{print $3}'` -ver_maint=`grep "#define OCC_VERSION_MAINTENANCE" ${CASROOT}/inc/Standard_Version.hxx | awk '{print $3}'` -ver="$ver_major.$ver_minor.$ver_maint" -if [ "$ver" == "6.3" ] ; then - return 0 -fi -return 1 -} - -print_env_bin() -{ -cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < /dev/null - if [ $? == 0 ] ; then is_mandriva2007=1 ; fi -fi - -if [ -e /etc/issue ] ; then - grep -e "Mandriva Linux release 2008.0" /etc/issue > /dev/null - if [ $? == 0 ] ; then is_mandriva2008=1 ; fi -fi - -if [ -e /etc/issue ] ; then - grep -e "Debian GNU/Linux 4.0" /etc/issue > /dev/null - if [ $? == 0 ] ; then is_debian40=1 ; fi -fi - -if [ $is_mandriva2007 == 1 ] || [ $is_mandriva2008 == 1 ] || [ $is_debian40 == 1 ] ; then -where_xmu_include=/usr/include/X11 -else -where_xmu_include=/usr/X11R6/include/X11 -fi - -flags="$flags --with-xmu-include=$where_xmu_include" - -if test `uname -m` = "x86_64" ; then - flags="$flags --with-xmu-library=/usr/lib64" -else - flags="$flags --with-xmu-library=/usr/X11R6/lib" -fi - - flags="$flags LDFLAGS=-lpthread" -glincdir="`where_gl_includes`" -if [ $? -eq 0 ] ; then flags="$flags --with-gl-include=$glincdir"; fi -gllibdir="`where_gl_libs`" -if [ $? -eq 0 ] ; then flags="$flags --with-gl-library=$gllibdir"; fi -tcldir="`where_tcl`" -if [ $? -eq 0 ] ; then flags="$flags --with-tcl=$tcldir"; fi -tkdir="`where_tk`" -if [ $? -eq 0 ] ; then flags="$flags --with-tk=$tkdir"; fi -dpsdir="`where_dps`" -if [ $? -eq 0 ] ; then flags="$flags --with-dps-include=$dpsdir/include --with-dps-library=$dpsdir/lib"; fi -flags="$flags --disable-wrappers --disable-wok --disable-debug --enable-production" - -export CASROOT=${PRODUCT_SRC_DIR} - -echo "`pwd` -> ./configure --prefix=${PRODUCT_DIR} $flags >> ${PRODUCT_DIR}/CONFIGURE.LOG" -./configure --prefix=${PRODUCT_DIR} $flags >> ${PRODUCT_DIR}/CONFIGURE.LOG 2> ${INSTALL_WORK}/errlog - -# make -echo " +++++++++++ make" -GCC=`which gcc` -cat >> ${PRODUCT_DIR}/MAKE.LOG </dev/null`" ] ; then - str_to_replace="${gllibdir}/libGL.la" - fi - fi - if [ "$str_to_replace" == "" ] ; then - str_to_replace="-L${gllibdir} -lGL" - fi - - sed -e "s%-lGL\b%%g" \ - -e "s%[^[:space:]]*libGL.la[[:space:]]%%g" \ - -e "s%^dependency_libs='\(.*\)%dependency_libs='${str_to_replace} \1%" \ - libTKOpenGl.la > libTKOpenGl.la.new - mv -f libTKOpenGl.la.new libTKOpenGl.la -fi - -#du -sk ${PRODUCT_SRC_DIR} > ${PRODUCT_DIR}/size.log -cd ${PRODUCT_DIR}; - -# remove sources and temporary files after building -echo "${INSTALL_PRODUCTS}" | grep -q "PatchForOpenCascade" -if [ $? -eq 1 ] && [ ${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} - -is_mandriva2008=0 - -if [ -e /etc/issue ] ; then - grep -e "Mandriva Linux release 2008.0" /etc/issue > /dev/null - if [ $? == 0 ] ; then is_mandriva2008=1 ; fi -fi - -# modify *.la files -ldir=${PRODUCT_DIR}/lib -if [ ! -d $ldir ]; then ldir=${PRODUCT_DIR}/Linux/lib; fi -if [ ! -d $ldir ]; then ldir=${PRODUCT_DIR}/lin/lib; fi -cd $ldir -# 1. set libdir correctly, correct dependencies, set tcldir correctly -tcldir=`printenv TCLHOME` -for l in X `find . -name "*.la"`; do - if [ "$l" != "X" ] ; then - l=`basename $l` - libdir=`grep -e "libdir=.*" $l | sed -e "s/libdir=[\'|\"]\(.*\)[\'|\"]/\1/g"` - sed -e "s%${libdir}%${ldir}%g" $l > _$l - mv -f _$l $l - if [ -n "${tcldir}" ] && [ -d "${tcldir}" ] ; then - sed -e "s%-L[^[:space:]]*tcltk[^[:space:]]*/lib%-L${tcldir}/lib%g" $l > _$l - mv -f _$l $l - fi - chmod a+x $l - fi -done - -# 2. fix libGL dependencies - -#if test "$is_mandriva2008" = "1" && test `uname -m` = "x86_64" ; then - -#echo " +++++++++++ libGL dependencies are not updated" - -#else - -cd $ldir -gllibdir="`where_gl_libs`" -if [ "$gllibdir" != "" ] ; then - if [ -f ${gllibdir}/libGL.la ] ; then - libdir=`grep "libdir=" ${gllibdir}/libGL.la | sed -e "s%libdir='\(.*\)'%\1%"` - if [ "`ls $libdir/libGL.so* 2>/dev/null`" ] ; then - str_to_replace="${gllibdir}/libGL.la" - fi -fi - if [ "$str_to_replace" == "" ] ; then - str_to_replace="-L${gllibdir} -lGL" - fi - - sed -e "s%-lGL\b%%g" \ - -e "s%[^[:space:]]*libGL.la[[:space:]]%%g" \ - -e "s%^dependency_libs='\(.*\)%dependency_libs='${str_to_replace} \1%" \ - libTKOpenGl.la > libTKOpenGl.la.new - mv -f libTKOpenGl.la.new libTKOpenGl.la -fi -#fi - -# 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="CAS-6.3" -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/COMPONENT.sh b/config_files/COMPONENT.sh deleted file mode 100755 index 12f4811..0000000 --- a/config_files/COMPONENT.sh +++ /dev/null @@ -1,152 +0,0 @@ -#!/bin/bash -noprofile - -#################################################################################### -# File : COMPONENT.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. -# -#################################################################################### - -check_version(){ -if [ -n "${COMPONENT_ROOT_DIR}" ]; then - check_lib_version VERSION ${COMPONENT_ROOT_DIR}/bin/salome - if [ "$?" -eq "0" ]; then - ver=`cat ${COMPONENT_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $2}' | tr -d '[:space:]' ` - if [ "$ver" = "${SALOME_VERSION}" ]; then - return 0 - fi - fi -elif [ -n "${COMPONENT_SRC_DIR}" ]; then - check_salome_src_version COMPONENT_SRC_DIR - if [ $? -eq 0 ] ; then return 0 ; fi - return 1 -fi -return 1 -} - -print_env_bin(){ - -if [ `uname -m` = "x86_64" ] && [ -d ${PRODUCT_DIR}/lib64 ] ; then - LIB_PREFIX=64 -elif [ -d ${PRODUCT_DIR}/lib ] ; then - LIB_PREFIX="" -else - LIB_PREFIX=64 -fi - -cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < _runAppli -sed -e "s%export HELLO_ROOT_DIR=.*%export HELLO_ROOT_DIR=${HELLO_ROOT_DIR}%g" _runAppli > runAppli -rm -f _runAppli -chmod a+x runAppli - -# to generate environment scripts -try_preinstalled -} - -source ./common.sh - -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; -shift -SINGLE_DIR=$9; -if [ -n "$SINGLE_DIR" ] ; then SINGLE_DIR=$SDIR_NAME; fi -export PRODUCT="HELLO_${SALOME_VERSION}" -export PRODUCT_SRC="HELLO_SRC_${SALOME_VERSION}" -export PRODUCT_DIR=${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}} -export PRODUCT_SRC_DIR=${INST_ROOT}/${PRODUCT_SRC} -$PROCEDURE diff --git a/config_files/HXX2SALOME.sh b/config_files/HXX2SALOME.sh deleted file mode 100755 index ce2228e..0000000 --- a/config_files/HXX2SALOME.sh +++ /dev/null @@ -1,132 +0,0 @@ -#!/bin/bash -noprofile - -#################################################################################### -# File : HXX2SALOME.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. -# -#################################################################################### - -check_version(){ -# No way to check version! -return 0 -} - -print_env_bin(){ -cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <> ${PRODUCT_DIR}/CONFIGURE.LOG <> ${PRODUCT_DIR}/CONFIGURE.LOG <> ${PRODUCT_DIR}/MAKE.LOG < ${PRODUCT_DIR}/size.log -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 module directory -test -z ${SINGLE_DIR} && makedir ${PRODUCT_DIR} || mkdir -p ${PRODUCT_DIR} - -check_jb tar xfz ${SOURCE_DIR}/HXX2SALOMEbinariesV${SALOME_VERSION}.tar.gz -C ${PRODUCT_DIR} - -# to generate environment scripts -try_preinstalled -} - -source ./common.sh - -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; -shift -SINGLE_DIR=$9; -if [ -n "$SINGLE_DIR" ] ; then SINGLE_DIR=$SDIR_NAME; fi -export PRODUCT="HXX2SALOME_${SALOME_VERSION}" -export PRODUCT_SRC="HXX2SALOME_SRC_${SALOME_VERSION}" -export PRODUCT_DIR=${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}} -export PRODUCT_SRC_DIR=${INST_ROOT}/${PRODUCT_SRC} -$PROCEDURE diff --git a/config_files/HXX2SALOMEDOC.sh b/config_files/HXX2SALOMEDOC.sh deleted file mode 100755 index 9bdacf9..0000000 --- a/config_files/HXX2SALOMEDOC.sh +++ /dev/null @@ -1,98 +0,0 @@ -#!/bin/bash -noprofile - -#################################################################################### -# File : HXX2SALOMEDOC.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. -# -#################################################################################### - -check_version(){ -# No way to check version! -return 0 -} - -print_env_bin(){ -cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < /dev/null - version=`cat bin/salome/VERSION | awk -F: '{print $2}' | tr -d '[:space:]'` - dir="${HOME}/salome_appli_$version" - bin/salome/createAppli.sh $dir - rm -rf $dir/env.d/*.sh - 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} -make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src ${PRODUCT_SRC_DIR} -} - -source ./common.sh - -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; -shift -shift -SINGLE_DIR=$9; -if [ -n "$SINGLE_DIR" ] ; then SINGLE_DIR=$SDIR_NAME; fi -export PRODUCT="KERNEL_${SALOME_VERSION}" -export PRODUCT_SRC="KERNEL_SRC_${SALOME_VERSION}" -export PRODUCT_DIR=${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}} -export PRODUCT_SRC_DIR=${INST_ROOT}/${PRODUCT_SRC} -$PROCEDURE diff --git a/config_files/LIGHT.sh b/config_files/LIGHT.sh deleted file mode 100755 index f3edf87..0000000 --- a/config_files/LIGHT.sh +++ /dev/null @@ -1,147 +0,0 @@ -#!/bin/bash -noprofile - -#################################################################################### -# File : LIGHT.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. -# -#################################################################################### - -check_version(){ -if [ -n "${LIGHT_ROOT_DIR}" ]; then - if [ -f ${LIGHT_ROOT_DIR}/bin/salome/VERSION ]; then - ver=`cat ${LIGHT_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $NF}' | tr -d '[:space:]' ` - if [ "$ver" = "${SALOME_VERSION}" ]; then - return 0 - fi - fi -elif [ -n "${LIGHT_SRC_DIR}" ]; then - check_salome_src_version LIGHT_SRC_DIR - if [ $? -eq 0 ] ; then return 0 ; fi - return 1 -fi -return 1 -} - -print_env_bin(){ -if [ `uname -m` = "x86_64" ] && [ -d ${PRODUCT_DIR}/lib64 ] ; then - LIB_PREFIX=64 -elif [ -d ${PRODUCT_DIR}/lib ] ; then - LIB_PREFIX="" -else - LIB_PREFIX=64 -fi -cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh </dev/null` -if [ "$ver" == "24.2" ]; then - return 0 -fi -return 1 -} - -print_env_bin() -{ -cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < _setup.py - mv _setup.py setup.py - fi - if [ "$f77blas_nf" -eq "1" ] ; then - sed -e "s%\(^libraries_list = \[.*\)\('f77blas', \)\(.*\)$%\1\3%g" setup.py > _setup.py - mv _setup.py setup.py - fi - if [ "$cblas_nf" -eq "1" ] ; then - sed -e "s%\(^libraries_list = \[.*\)\('cblas', \)\(.*\)$%\1\3%g" setup.py > _setup.py - mv _setup.py setup.py - fi - if [ "$atlas_nf" -eq "1" ] ; then - sed -e "s%\(^libraries_list = \[.*\)\('atlas', \)\(.*\)$%\1\3%g" setup.py > _setup.py - mv _setup.py setup.py - fi - if [ "$g2c_nf" -eq "1" ] ; then - sed -e "s%\(^libraries_list = \[.*\)\('g2c'\)\(.*\)$%\1\3%g" setup.py > _setup.py - mv _setup.py setup.py - fi - sed -e "s%^use_dotblas = 1%use_dotblas = 0%g" setup.py > _setup.py - mv _setup.py setup.py - sed -e "s%#\(os.path.join('Src', 'blas_lite.c'),\)%\1%g" setup.py > _setup.py - mv _setup.py setup.py - sed -e "s%#\(os.path.join('Src', 'f2c_lite.c'),\)%\1%g" setup.py > _setup.py - mv _setup.py setup.py - sed -e "s%#\(os.path.join('Src', 'zlapack_lite.c'),\)%\1%g" setup.py > _setup.py - mv _setup.py setup.py - sed -e "s%#\(os.path.join('Src', 'dlapack_lite.c')\)%\1%g" setup.py > _setup.py - mv _setup.py setup.py - chmod a+x setup.py -fi - -check_job ${PRODUCT_DIR}/INSTALL.LOG python setup.py install --prefix=${PRODUCT_DIR} - -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 scripts -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="Numeric-24.2" -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/PYCALCULATOR.sh b/config_files/PYCALCULATOR.sh deleted file mode 100755 index 69099f0..0000000 --- a/config_files/PYCALCULATOR.sh +++ /dev/null @@ -1,150 +0,0 @@ -#!/bin/bash -noprofile - -#################################################################################### -# File : PYCALCULATOR.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. -# -#################################################################################### - -check_version(){ -if [ -n "${PYCALCULATOR_ROOT_DIR}" ]; then - check_lib_version VERSION ${PYCALCULATOR_ROOT_DIR}/bin/salome - if [ "$?" -eq "0" ]; then - ver=`cat ${PYCALCULATOR_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $2}' | tr -d '[:space:]' ` - if [ "$ver" = "${SALOME_VERSION}" ]; then - return 0 - fi - fi -elif [ -n "${PYCALCULATOR_SRC_DIR}" ]; then - check_salome_src_version PYCALCULATOR_SRC_DIR - if [ $? -eq 0 ] ; then return 0 ; fi - return 1 -fi -return 1 -} - -print_env_bin(){ -if [ `uname -m` = "x86_64" ] && [ -d ${PRODUCT_DIR}/lib64 ] ; then - LIB_PREFIX=64 -elif [ -d ${PRODUCT_DIR}/lib ] ; then - LIB_PREFIX="" -else - LIB_PREFIX=64 -fi -cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < _runAppli -sed -e "s%export PYHELLO_ROOT_DIR=.*%export PYHELLO_ROOT_DIR=${PYHELLO_ROOT_DIR}%g" _runAppli > runAppli -chmod a+x runAppli - -# to generate environment scripts -try_preinstalled -} - -source ./common.sh - -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; -shift -SINGLE_DIR=$9; -if [ -n "$SINGLE_DIR" ] ; then SINGLE_DIR=$SDIR_NAME; fi -export PRODUCT="PYHELLO_${SALOME_VERSION}" -export PRODUCT_SRC="PYHELLO_SRC_${SALOME_VERSION}" -export PRODUCT_DIR=${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}} -export PRODUCT_SRC_DIR=${INST_ROOT}/${PRODUCT_SRC} -$PROCEDURE diff --git a/config_files/PyQt-4.4.3.sh b/config_files/PyQt-4.4.3.sh deleted file mode 100755 index 855be33..0000000 --- a/config_files/PyQt-4.4.3.sh +++ /dev/null @@ -1,143 +0,0 @@ -#!/bin/bash -noprofile - -#################################################################################### -# File : PyQt-4.4.3.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. -# -#################################################################################### - -check_version() -{ -if [ -n "${PYQTDIR}" ] && [ -f ${PYQTDIR}/pyqtconfig.py ] ; then - ver=`cd ${PYQTDIR} && python -c "from pyqtconfig import Configuration; c=Configuration();print c.__getattr__('pyqt_version_str')" 2>/dev/null` - if [ -n "$ver" ] ; then - maj_ver=`echo $ver | awk -F. '{if(NF>0) print $1; else print 0}' | sed -e 's/^\([0-9]*\).*$/\1/'` - min_ver=`echo $ver | awk -F. '{if(NF>1) print $2; else print 0}' | sed -e 's/^\([0-9]*\).*$/\1/'` - rel_ver=`echo $ver | awk -F. '{if(NF>2) print $3; else print 0}' | sed -e 's/^\([0-9]*\).*$/\1/'` - let ver=$maj_ver*10000+$min_ver*100+$rel_ver - if [ $ver -eq 040403 ] ; then - return 0 - fi - fi -fi -return 1 -} - -print_env_bin() -{ -cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <> ${PRODUCT_DIR}/MAKE.LOG < pyqtconfig.py.1 -sed -e "s%\('pyqt_mod_dir':[[:space:]]*\).*%\1'${PRODUCT_DIR}',%g" pyqtconfig.py.1 > pyqtconfig.py -sed -e "s%\('pyqt_sip_dir':[[:space:]]*\).*%\1'${PRODUCT_DIR}/sip',%g" pyqtconfig.py > pyqtconfig.py.1 -mv pyqtconfig.py.1 pyqtconfig.py - -# 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="PyQt-4.4.3" -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/Python-2.4.4.sh b/config_files/Python-2.4.4.sh deleted file mode 100755 index a1547e5..0000000 --- a/config_files/Python-2.4.4.sh +++ /dev/null @@ -1,189 +0,0 @@ -#!/bin/bash -noprofile - -#################################################################################### -# File : Python-2.4.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. -# -#################################################################################### - -check_version() -{ -if [ -z "$PYTHONHOME" ]; then - return 1 -fi -isPython=`which python 2>/dev/null` -if [ -n "$isPython" ]; then - # version number is calculated as: *10000+*100+ - # for Python 2.4.4 it is equal to 20404 - ver=`python -V 2>&1` - ver=`echo $ver | awk '{print $2}' | awk -F. '{v1=0;v2=0;v3=0;if(NF>0)v1=$1;if(NF>1)v2=$2;if(NF>2)v3=$3;print v1*10000+v2*100+v3}'` - if [ $ver -eq 20404 ] ; then - return 0 - fi -fi -return 1 -} - -print_env_bin() -{ -cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <& /dev/null ; \ -# autoconf >& /dev/null ; \ -# aclocal >& /dev/null ; \ -# autoconf >& /dev/null ) -# fi -#fi - -# 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} $PYTHON_CONFIGURE_OPTIONS - -# vsr: force linking to libstdc++.so -sed -e 's%\(^LIBS=.*\)%\1 -lstdc++%g' Makefile > _Makefile -mv -f _Makefile Makefile -GCC=`which gcc` -cat >> ${PRODUCT_DIR}/MAKE.LOG < _"$sc" - mv -f _"$sc" "$sc" - chmod a+x "$sc" - fi -done - -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} - -(cd ${PRODUCT_DIR}/lib/python2.4/config; ln -fs ../../libpython2.4.so.1.0 libpython2.4.so) - -cd ${PRODUCT_DIR}/bin -for sc in idle pydoc smtpd.py ; do - if [ -e $sc ] ; then - sed -e "s%#\!.*python%#\!/usr/bin/env python%" "$sc" > _"$sc" - mv -f _"$sc" "$sc" - chmod a+x "$sc" - fi -done - -# to generate environment scripts -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="Python-2.4.4" -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/RANDOMIZER.sh b/config_files/RANDOMIZER.sh deleted file mode 100755 index 70a460c..0000000 --- a/config_files/RANDOMIZER.sh +++ /dev/null @@ -1,149 +0,0 @@ -#!/bin/bash -noprofile - -#################################################################################### -# File : RANDOMIZER.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. -# -#################################################################################### - -check_version(){ -if [ -n "${RANDOMIZER_ROOT_DIR}" ]; then - if [ -f ${RANDOMIZER_ROOT_DIR}/bin/salome/VERSION ]; then - ver=`cat ${RANDOMIZER_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $NF}' | tr -d '[:space:]' ` - if [ "$ver" = "${SALOME_VERSION}" ]; then - return 0 - fi - fi -elif [ -n "${RANDOMIZER_SRC_DIR}" ]; then - check_salome_src_version RANDOMIZER_SRC_DIR - if [ $? -eq 0 ] ; then return 0 ; fi - return 1 -fi -return 1 -} - -print_env_bin(){ -if [ `uname -m` = "x86_64" ] && [ -d ${PRODUCT_DIR}/lib64 ] ; then - LIB_PREFIX=64 -elif [ -d ${PRODUCT_DIR}/lib ] ; then - LIB_PREFIX="" -else - LIB_PREFIX=64 -fi -cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh </dev/null`" ]; then - ver=`swig -version 2>&1 | grep -i version | awk '{ print $3 }' | sed -e 's/^\([0-9.]*\)\(.*\)/\1/'` - if [ "$ver" == "1.3.31" ] ; then - return 0; - fi -fi -return 1; -} - -print_env_bin() -{ -cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <> ${PRODUCT_DIR}/MAKE.LOG < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < configure -chmod 755 ./configure - -check_job ${PRODUCT_DIR}/CONFIGUREcmake.LOG ./configure -cat >> ${PRODUCT_DIR}/MAKEcmake.LOG <GetFile()->tellg()%seekg(static_cast(self->GetFile()->tellg())%g" IO/vtkBMPReader.cxx > IO/vtkBMPReader.cxx.orig -mv -f IO/vtkBMPReader.cxx.orig IO/vtkBMPReader.cxx -sed -e "s%seekg(self->GetFile()->tellg()%seekg(static_cast(self->GetFile()->tellg())%g" IO/vtkImageReader.cxx > IO/vtkImageReader.cxx.orig -mv -f IO/vtkImageReader.cxx.orig IO/vtkImageReader.cxx - -# get Python and tcl/tk version -python_version="`python -c 'import sys; print sys.version[:3]'`" -tcl_version="" -tcl_includes="" -tcl_libs="" -tcldir="`where_tcl`" -if [ $? -eq 0 ] && [ -e ${tcldir}/tclConfig.sh ] ; then - tcl_version=`grep -e "TCL_VERSION=.*" ${tcldir}/tclConfig.sh | sed -e "s%TCL_VERSION=[\'|\"]\(.*\)[\'|\"]%\1%g"` - tcl_includes=`grep -e "TCL_INCLUDE_SPEC=.*" ${tcldir}/tclConfig.sh | sed -e "s%TCL_INCLUDE_SPEC=[\'|\"]-I\(.*\)[\'|\"]%\1%g"` - if [ -z "$tcl_includes" ] ; then tcl_includes=/usr/include ; fi - tcl_libs=`grep -e "TCL_PACKAGE_PATH=.*" ${tcldir}/tclConfig.sh | sed -e "s%TCL_PACKAGE_PATH=[\'|\"]\(.*\)[\'|\"]%\1%g"` -fi - -VTK_CMAKE_OPTIONS="" - -### compiler options -VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS"-DVTK_HAVE_GETSOCKNAME_WITH_SOCKLEN_T=1" - -### common VTK settings -VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DBUILD_SHARED_LIBS:BOOL=ON" -VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DCMAKE_BUILD_TYPE:STRING=Release" -VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DCMAKE_CXX_COMPILER:STRING=`which g++`" -VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DCMAKE_C_COMPILER:STRING=`which gcc`" -VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DCMAKE_INSTALL_PREFIX:STRING=${PRODUCT_DIR}" -VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DVTK_USE_HYBRID:BOOL=ON" -VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DVTK_USE_PARALLEL:BOOL=ON" -VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DVTK_USE_PATENTED:BOOL=OFF" -VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DVTK_USE_RENDERING:BOOL=ON" -VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DVTK_USE_GL2PS:BOOL=ON" - if test `uname -m` = "x86_64" ; then -VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DCMAKE_CXX_FLAGS:STRING=-m64" -VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DCMAKE_C_FLAGS:STRING=-m64" - fi -#INV: provide additional flags Mandriva 2007.0 -#is_mandriva2007=0 -#if [ -e /etc/redhat-release ] ; then -# grep -e "Mandriva Linux release 2007.0" /etc/redhat-release > /dev/null -# if [ $? == 0 ] ; then is_mandriva2007=1 ; fi -#fi -### Wrap Python settings -if [ "${python_version}" != "" ]; then -#if [ $is_mandriva2007 == 1 ] ; then -#VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DVTK_WRAP_PYTHON:BOOL=OFF" -#else -VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DVTK_WRAP_PYTHON:BOOL=ON" -#fi -VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DPYTHON_EXECUTABLE:STRING=${PYTHONHOME}/bin/python${python_version}" -VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DPYTHON_INCLUDE_PATH:STRING=${PYTHONHOME}/include/python${python_version}" -VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DPYTHON_LIBRARY:STRING=${PYTHONHOME}/lib/python${python_version}/config/libpython${python_version}.a" -fi -### Wrap Tcl settings -if [ "${tcl_version}" != "" ] && [ "${tcl_includes}" != "" ] && [ "${tcl_libs}" != "" ] ; then -# suppose that tcl and tk are installed in the same dir -#if [ $is_mandriva2007 == 1 ] ; then -#VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DVTK_WRAP_TCL:BOOL=OFF" -#else -VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DVTK_WRAP_TCL:BOOL=ON" -#fi -VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DTCL_INCLUDE_PATH:STRING=${tcl_includes}" -VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DTCL_LIBRARY:STRING=${tcl_libs}/libtcl${tcl_version}.so" -VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DTCL_STUB_LIBRARY:STRING=${tcl_libs}/libtclstub${tcl_version}.a" -VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DTCL_TCLSH:STRING=${TCLHOME}/bin/tclsh${tcl_version}" -VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DTK_INCLUDE_PATH:STRING=${tcl_includes}" -VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DTK_LIBRARY:STRING=${tcl_libs}/libtk${tcl_version}.so" -VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DTK_STUB_LIBRARY:STRING=${tcl_libs}/libtkstub${tcl_version}.a" -VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DTK_WISH:STRING=${TCLHOME}/bin/wish${tcl_version}" -fi -### if Mesa is pre-installed -if [ -n "$MESA_HOME" ]; then - VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DOPENGL_INCLUDE_DIR:STRING=${MESA_HOME}/include" - if test `uname -m` = "x86_64" ; then - VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DOPENGL_gl_LIBRARY:STRING=${MESA_HOME}/lib64/libGL.so" - VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DOPENGL_glu_LIBRARY:STRING=${MESA_HOME}/lib64/libGLU.so" - else - VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DOPENGL_gl_LIBRARY:STRING=${MESA_HOME}/lib/libGL.so" - VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DOPENGL_glu_LIBRARY:STRING=${MESA_HOME}/lib/libGLU.so" - fi - VTK_CMAKE_OPTIONS=$VTK_CMAKE_OPTIONS" -DOPENGL_xmesa_INCLUDE_DIR:STRING=${MESA_HOME}/include" -fi - -cat > ${PRODUCT_DIR}/CONFIGURE.LOG < ${PRODUCT_DIR}/MAKE.LOG < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < -# -#################################################################################### - -install_root=$1 -env_sequence="env_build.csh env_build.sh env_products.csh env_products.sh" - -for file_name in $env_sequence ; do - file=$install_root/$file_name - if [ -e $file ] ; then - cp ${file} ${file}_`date +%F_%T` - fi -done -exit 0 diff --git a/config_files/blsurf-2.7.12.sh b/config_files/blsurf-2.7.12.sh deleted file mode 100755 index fbc8063..0000000 --- a/config_files/blsurf-2.7.12.sh +++ /dev/null @@ -1,97 +0,0 @@ -#!/bin/bash -noprofile - -#################################################################################### -# File : blsurf-2.7.12.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. -# -#################################################################################### - -check_version(){ -# No way to check version! -return 0 -} - -print_env_bin() -{ -if [ `uname -m` = "x86_64" ] && [ -d ${PRODUCT_DIR}/lib64 ] ; then - LIB_PREFIX=64 -elif [ -d ${PRODUCT_DIR}/lib ] ; then - LIB_PREFIX="" -else - LIB_PREFIX=64 -fi -cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < 0 ) - if ( "$1" == "-b" ) then - set is_build_configure=1 - set is_configure=1 - else if ( "$1" == "-c" ) then - set is_configure=1 - else if ( "$1" == "-w" ) then - set inst_with_gui=0 - else if ( "$1" == "-d" ) then - set is_delete=1 - else if ( "$1" == "-o" ) then - set optim="--enable-production=yes --disable-debug" - else if ( "$1" == "-i" ) then - set is_install=1 - else if ( "$1" == "-v" ) then - shift - set verbose_level=$1 - else if ( "$1" == "-p" ) then - shift - set is_install=1 - set prefix=$1 - else if ( "$1" == "-h" ) then - set is_help=1 - else if ( "$1" == "-t" ) then - set is_tui=1 - else - set ckt=`echo ${modules} | grep $1` - if ( "$ckt" != "" ) then - set params="$params $1" - else - set b_params="$b_params $1" - echo "\!\!\! Warning \!\!\! Unknown module: $1. Skipping." - endif - endif - shift -end - -######################################################### -# if -h option is given - print help info and exit -######################################################### -if ( $is_help == 1 ) then -echo "" -echo "" -echo "Description:" -echo " Builds given SALOME modules by performing make and (optionally) make install commands" -echo "" -echo "Usage:" -echo " build.csh [