5 if [ -z "$CASROOT" ]; then
8 check_lib_version ${CASROOT}/inc/Standard_Version.hxx
9 if [ "$?" -ne "0" ] ; then
12 ver_major=`grep "!define OCC_VERSION_MAJOR" ${CASROOT}/inc/Standard_Version.hxx | awk '{print $3}'`
13 ver_minor=`grep "!define OCC_VERSION_MINOR" ${CASROOT}/inc/Standard_Version.hxx | awk '{print $3}'`
14 ver="$ver_major.$ver_minor"
15 if [ "$ver" != "5.2" ] ; then
18 # above check if only for major and minor version numbers
19 # we need also the check for the release version number
20 # unfortunately there is no appropriate method to define the release version number,
21 # so we use a little trick here:
22 check_lib_version libStdPlugin.so ${CASROOT}/lin/lib
23 if [ "$?" -eq "0" ] ; then
31 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
32 #$DELIM ${PRODUCT_TYPE} $DELIM
33 export CASROOT=\${INSTALL_ROOT}/${PRODUCT}
34 export LD_LIBRARY_PATH=\${CASROOT}/lin/lib:\${CASROOT}/`uname`/lib:\${LD_LIBRARY_PATH}
35 # Variable for Foundation Classes :
36 export CSF_UnitsLexicon=\${CASROOT}/src/UnitsAPI/Lexi_Expr.dat
37 export CSF_UnitsDefinition=\${CASROOT}/src/UnitsAPI/Units.dat
38 # Variable for DataExchange :
39 export CSF_SHMessageStd=\${CASROOT}/src/SHMessage
40 export CSF_XSMessage=\${CASROOT}/src/XSMessage
42 export CSF_MDTVFontDirectory=\${CASROOT}/src/FontMFT
43 export CSF_MDTVTexturesDirectory=\${CASROOT}/src/Textures
46 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
47 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
50 # looks for the native product and collects it's environment (used by make_env())
53 if [ $? -eq 0 ] ; then
54 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
55 #$DELIM ${PRODUCT_TYPE} $DELIM
56 export CASROOT=${CASROOT}
57 export LD_LIBRARY_PATH=\${CASROOT}/lin/lib:\${CASROOT}/`uname`/lib:\${LD_LIBRARY_PATH}
58 # Variable for Foundation Classes :
59 export CSF_UnitsLexicon=\${CASROOT}/src/UnitsAPI/Lexi_Expr.dat
60 export CSF_UnitsDefinition=\${CASROOT}/src/UnitsAPI/Units.dat
61 # Variable for DataExchange :
62 export CSF_SHMessageStd=\${CASROOT}/src/SHMessage
63 export CSF_XSMessage=\${CASROOT}/src/XSMessage
65 export CSF_MDTVFontDirectory=\${CASROOT}/src/FontMFT
66 export CSF_MDTVTexturesDirectory=\${CASROOT}/src/Textures
69 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
76 try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
82 echo "You can only install precompiled CAS-5.2.3"
88 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
89 source ${INSTALL_WORK}/$SHRC
91 check_jb tar xfz ${SOURCE_DIR}/CAS-5.2.3.tar.gz -C ${INSTALL_ROOT}
97 export INSTALL_WORK=$2;
99 export INSTALL_ROOT=$4;
100 export PRODUCT_SEQUENCE=$5;
101 if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="cas" ; fi
102 export PRODUCT="CAS-5.2.3"
103 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
104 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}