4 if [ -n "${GHS3DPLUGIN_SRC_DIR}" ]; then
5 check_lib_version VERSION ${GHS3DPLUGIN_SRC_DIR}/bin
6 if [ "$?" -eq "0" ]; then
7 ver=`cat ${GHS3DPLUGIN_SRC_DIR}/bin/VERSION | awk -F: '{print $2}' | tr -d '[:space:]' `
8 if [ "$ver" = "3.1.0a2" ]; then
18 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
19 #$DELIM ${PRODUCT_TYPE} $DELIM
20 export GHS3DPLUGIN_SRC_DIR=\${INSTALL_ROOT}/${PRODUCT}
23 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
24 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
27 # looks for the native product and collects it's environment (used by make_env())
30 if [ $? -eq 0 ] ; then
31 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
32 #$DELIM ${PRODUCT_TYPE} $DELIM
33 export GHS3DPLUGIN_SRC_DIR=${GHS3DPLUGIN_SRC_DIR}
36 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
43 try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
49 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
50 source ${INSTALL_WORK}/$SHRC
52 check_jb tar xfz ${SOURCE_DIR}/GHS3DPLUGINsourcesV3.1.0a2.tar.gz -C ${INSTALL_ROOT}
63 export INSTALL_WORK=$2;
65 export INSTALL_ROOT=$4;
66 export PRODUCT_SEQUENCE=$5;
67 if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="GHS3DPLUGINSrc" ; fi
68 export PRODUCT="GHS3DPLUGIN_SRC_3.1.0a2"
69 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
70 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}