From 8ca28c0c7587a1197570366c1242d6a920b3e137 Mon Sep 17 00:00:00 2001 From: admin Date: Fri, 11 Nov 2005 14:23:29 +0000 Subject: [PATCH] This commit was generated by cvs2git to create branch 'SALOME_3'. Cherrypick from master 2005-11-11 14:23:28 UTC vsr 'correct dependencies': config_Mandrake_10.1.xml config_RedHat_8.0.xml config_RedHat_9.xml config_Scientific_3.0.5.xml config_files/tcltk-8.3.3.sh config_files/tcltk-8.4.5.sh --- config_Mandrake_10.1.xml | 507 ++++++++++++++++++++++++++++++++++ config_RedHat_8.0.xml | 527 ++++++++++++++++++++++++++++++++++++ config_RedHat_9.xml | 527 ++++++++++++++++++++++++++++++++++++ config_Scientific_3.0.5.xml | 527 ++++++++++++++++++++++++++++++++++++ config_files/tcltk-8.3.3.sh | 217 +++++++++++++++ config_files/tcltk-8.4.5.sh | 217 +++++++++++++++ 6 files changed, 2522 insertions(+) create mode 100755 config_Mandrake_10.1.xml create mode 100755 config_RedHat_8.0.xml create mode 100755 config_RedHat_9.xml create mode 100755 config_Scientific_3.0.5.xml create mode 100755 config_files/tcltk-8.3.3.sh create mode 100755 config_files/tcltk-8.4.5.sh diff --git a/config_Mandrake_10.1.xml b/config_Mandrake_10.1.xml new file mode 100755 index 0000000..6b4f1fd --- /dev/null +++ b/config_Mandrake_10.1.xml @@ -0,0 +1,507 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/config_RedHat_8.0.xml b/config_RedHat_8.0.xml new file mode 100755 index 0000000..cacb46a --- /dev/null +++ b/config_RedHat_8.0.xml @@ -0,0 +1,527 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/config_RedHat_9.xml b/config_RedHat_9.xml new file mode 100755 index 0000000..d83a717 --- /dev/null +++ b/config_RedHat_9.xml @@ -0,0 +1,527 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/config_Scientific_3.0.5.xml b/config_Scientific_3.0.5.xml new file mode 100755 index 0000000..0c8eeee --- /dev/null +++ b/config_Scientific_3.0.5.xml @@ -0,0 +1,527 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/config_files/tcltk-8.3.3.sh b/config_files/tcltk-8.3.3.sh new file mode 100755 index 0000000..2e0b9cd --- /dev/null +++ b/config_files/tcltk-8.3.3.sh @@ -0,0 +1,217 @@ +#!/bin/sh + +check_version() +{ +VERSION="8.3" +if [ -z "$TCLHOME" ]; then + echo "TCLHOME doesn't set" + return 1 +fi + +# check tcl version +tcl_cfg=${TCLHOME}/lib/tclConfig.sh +if [ ! -f ${tcl_cfg} ]; then tcl_cfg=${TCLHOME}/tcl${VERSION}/lib/tclConfig.sh; fi +if [ ! -f ${tcl_cfg} ]; then tcl_cfg=${TCLHOME}/lib/tcl${VERSION}/tclConfig.sh; fi +if [ ! -f ${tcl_cfg} ]; then tcl_cfg=${TCLHOME}/lib/tcl${VERSION}/lib/tclConfig.sh; fi +if [ -f ${tcl_cfg} ]; then + tcl_ver=`awk '/^TCL_VERSION=.*/ {gsub("TCL_VERSION=","",$1);print $1}' ${tcl_cfg} | cut -d "'" -f 2` + if [ "$tcl_ver" != ${VERSION} ] ; then + return 1 + fi +else + return 1 +fi + +# check tk version +tk_cfg=${TCLHOME}/lib/tkConfig.sh +if [ ! -f ${tk_cfg} ]; then tk_cfg=${TCLHOME}/tk${VERSION}/tkConfig.sh; fi +if [ ! -f ${tk_cfg} ]; then tk_cfg=${TCLHOME}/lib/tk${VERSION}/tkConfig.sh; fi +if [ ! -f ${tk_cfg} ]; then tk_cfg=${TCLHOME}/lib/tk${VERSION}/lib/tkConfig.sh; fi +if [ -f ${tk_cfg} ]; then + tk_ver=`awk '/^TK_VERSION=.*/ {gsub("TK_VERSION=","",$1);print $1}' ${tk_cfg} | cut -d "'" -f 2` + if [ "$tk_ver" != ${VERSION} ] ; then + return 1 + fi +else + return 1 +fi + +return 0 +} + +print_env() +{ +cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <> ${PRODUCT_DIR}/CONFIGURE.LOG <> ${PRODUCT_DIR}/MAKE.LOG <> ${PRODUCT_DIR}/MAKEINSTALL.LOG <> ${PRODUCT_DIR}/CONFIGURE.LOG <> ${PRODUCT_DIR}/MAKE.LOG <> ${PRODUCT_DIR}/MAKEINSTALL.LOG <> ${PRODUCT_DIR}/CONFIGURE.LOG <> ${PRODUCT_DIR}/MAKE.LOG <> ${PRODUCT_DIR}/MAKEINSTALLEXEC.LOG < ${PRODUCT_DIR}/size.log +#du -sk ${INSTALL_WORK}/tk8.3.3 >> ${PRODUCT_DIR}/size.log +#du -sk ${INSTALL_WORK}/tclx8.3 >> ${PRODUCT_DIR}/size.log +rm -fr ${INSTALL_WORK}/tcl8.3.3 ${INSTALL_WORK}/tk8.3.3 ${INSTALL_WORK}/tclx8.3 +print_env +} + +install_binary() +{ +make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE} +source ${INSTALL_WORK}/$SHRC + +check_jb tar xfz ${SOURCE_DIR}/tcltk-8.3.3.tar.gz -C ${INSTALL_ROOT} + +# overriding installation path +cd ${PRODUCT_DIR}/lib +old_prefix=`grep -e "^TCL_PREFIX='.*'" tclConfig.sh | sed -e "s%^TCL_PREFIX='\(.*\)'%\1%g"` +sed -e "s%${old_prefix}%${PRODUCT_DIR}%g" tclConfig.sh > _tclConfig.sh +mv -f _tclConfig.sh tclConfig.sh +sed -e "s%${old_prefix}%${PRODUCT_DIR}%g" tkConfig.sh > _tkConfig.sh +mv -f _tkConfig.sh tkConfig.sh + +print_env +} + +export PROCEDURE=$1; +export INSTALL_WORK=$2; +export SOURCE_DIR=$3; +export INSTALL_ROOT=$4; +export PRODUCT_SEQUENCE=$5; +if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="tcl" ; fi +export PRODUCT="tcltk-8.3.3" +export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT} +export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT} +source ./common.sh +$PROCEDURE diff --git a/config_files/tcltk-8.4.5.sh b/config_files/tcltk-8.4.5.sh new file mode 100755 index 0000000..94b74a6 --- /dev/null +++ b/config_files/tcltk-8.4.5.sh @@ -0,0 +1,217 @@ +#!/bin/sh + +check_version() +{ +VERSION="8.4" +if [ -z "$TCLHOME" ]; then + echo "TCLHOME doesn't set" + return 1 +fi + +# check tcl version +tcl_cfg=${TCLHOME}/lib/tclConfig.sh +if [ ! -f ${tcl_cfg} ]; then tcl_cfg=${TCLHOME}/tcl${VERSION}/lib/tclConfig.sh; fi +if [ ! -f ${tcl_cfg} ]; then tcl_cfg=${TCLHOME}/lib/tcl${VERSION}/tclConfig.sh; fi +if [ ! -f ${tcl_cfg} ]; then tcl_cfg=${TCLHOME}/lib/tcl${VERSION}/lib/tclConfig.sh; fi +if [ -f ${tcl_cfg} ]; then + tcl_ver=`awk '/^TCL_VERSION=.*/ {gsub("TCL_VERSION=","",$1);print $1}' ${tcl_cfg} | cut -d "'" -f 2` + if [ "$tcl_ver" != ${VERSION} ] ; then + return 1 + fi +else + return 1 +fi + +# check tk version +tk_cfg=${TCLHOME}/lib/tkConfig.sh +if [ ! -f ${tk_cfg} ]; then tk_cfg=${TCLHOME}/tk${VERSION}/tkConfig.sh; fi +if [ ! -f ${tk_cfg} ]; then tk_cfg=${TCLHOME}/lib/tk${VERSION}/tkConfig.sh; fi +if [ ! -f ${tk_cfg} ]; then tk_cfg=${TCLHOME}/lib/tk${VERSION}/lib/tkConfig.sh; fi +if [ -f ${tk_cfg} ]; then + tk_ver=`awk '/^TK_VERSION=.*/ {gsub("TK_VERSION=","",$1);print $1}' ${tk_cfg} | cut -d "'" -f 2` + if [ "$tk_ver" != ${VERSION} ] ; then + return 1 + fi +else + return 1 +fi + +return 0 +} + +print_env() +{ +cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <> ${PRODUCT_DIR}/CONFIGURE.LOG <> ${PRODUCT_DIR}/MAKE.LOG <> ${PRODUCT_DIR}/MAKEINSTALL.LOG <> ${PRODUCT_DIR}/CONFIGURE.LOG <> ${PRODUCT_DIR}/MAKE.LOG <> ${PRODUCT_DIR}/MAKEINSTALL.LOG <> ${PRODUCT_DIR}/CONFIGURE.LOG <> ${PRODUCT_DIR}/MAKE.LOG <> ${PRODUCT_DIR}/MAKEINSTALLEXEC.LOG < ${PRODUCT_DIR}/size.log +du -sk ${INSTALL_WORK}/tk8.4.5 >> ${PRODUCT_DIR}/size.log +du -sk ${INSTALL_WORK}/tclx8.3.5 >> ${PRODUCT_DIR}/size.log +rm -fr ${INSTALL_WORK}/tcl8.4.5 ${INSTALL_WORK}/tk8.4.5 ${INSTALL_WORK}/tclx8.3.5 +print_env +} + +install_binary() +{ +make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE} +source ${INSTALL_WORK}/$SHRC + +check_jb tar xfz ${SOURCE_DIR}/tcltk-8.4.5.tar.gz -C ${INSTALL_ROOT} + +# overriding installation path +cd ${PRODUCT_DIR}/lib +old_prefix=`grep -e "^TCL_PREFIX='.*'" tclConfig.sh | sed -e "s%^TCL_PREFIX='\(.*\)'%\1%g"` +sed -e "s%${old_prefix}%${PRODUCT_DIR}%g" tclConfig.sh > _tclConfig.sh +mv -f _tclConfig.sh tclConfig.sh +sed -e "s%${old_prefix}%${PRODUCT_DIR}%g" tkConfig.sh > _tkConfig.sh +mv -f _tkConfig.sh tkConfig.sh + +print_env +} + +export PROCEDURE=$1; +export INSTALL_WORK=$2; +export SOURCE_DIR=$3; +export INSTALL_ROOT=$4; +export PRODUCT_SEQUENCE=$5; +if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="tcl" ; fi +export PRODUCT="tcltk-8.4.5" +export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT} +export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT} +source ./common.sh +$PROCEDURE -- 2.39.2