From 3ddf66cd624706d5490bb039f25c8ade6dbcc4fd Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 25 Oct 2005 08:20:36 +0000 Subject: [PATCH] CASCADE 6.0 installation script --- config_files/CAS-5.2.3.sh | 106 -------------------------------------- config_files/CAS-5.2.sh | 98 ----------------------------------- config_files/CAS-6.0.sh | 18 +++++-- 3 files changed, 15 insertions(+), 207 deletions(-) delete mode 100755 config_files/CAS-5.2.3.sh delete mode 100755 config_files/CAS-5.2.sh diff --git a/config_files/CAS-5.2.3.sh b/config_files/CAS-5.2.3.sh deleted file mode 100755 index ccca989..0000000 --- a/config_files/CAS-5.2.3.sh +++ /dev/null @@ -1,106 +0,0 @@ -#!/bin/sh - -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="$ver_major.$ver_minor" -if [ "$ver" != "5.2" ] ; then - return 1 -fi -# above check if only for major and minor version numbers -# we need also the check for the release version number -# unfortunately there is no appropriate method to define the release version number, -# so we use a little trick here: -check_lib_version libStdPlugin.so ${CASROOT}/lin/lib -if [ "$?" -eq "0" ] ; then - return 0 -fi -return 1 -} - -print_env() -{ -cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${PRODUCT_DIR}/size.log +rm -fr ${PRODUCT_WORK} print_env } @@ -127,6 +129,16 @@ make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE} source ${INSTALL_WORK}/$SHRC check_jb tar xfz ${SOURCE_DIR}/CAS-6.0.tar.gz -C ${INSTALL_ROOT} +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 +for l in `ls *.la`; do + libdir=`grep -e "libdir=.*" $l | sed -e "s/libdir=[\'|\"]\(.*\)[\'|\"]/\1/g"` + sed -e "s%${libdir}%${ldir}%g" $l > _$l + mv -f _$l $l + chmod a+x $l +done print_env } -- 2.39.2