4 if [ -n "${HELLO_SRC_DIR}" ]; then
5 if [ -f ${HELLO_SRC_DIR}/bin/VERSION ];
6 ver=`cat ${HELLO_SRC_DIR}/bin/VERSION | awk -F: '{print $NF}' | tr -d '[:space:]' `
7 if [ "$ver" = "3.0.0" ]; then
16 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
17 #$DELIM ${PRODUCT_TYPE} $DELIM
18 export HELLO_SRC_DIR=\${INSTALL_ROOT}/${PRODUCT}
21 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
22 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
25 # looks for the native product and collects it's environment (used by make_env())
28 if [ $? -eq 0 ] ; then
29 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
30 #$DELIM ${PRODUCT_TYPE} $DELIM
31 export HELLO_SRC_DIR=${HELLO_SRC_DIR}
34 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
41 try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
47 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
48 source ${INSTALL_WORK}/$SHRC
50 check_jb tar xfz ${SOURCE_DIR}/HELLOsourcesV3.0.0.tar.gz -C ${INSTALL_ROOT}
61 export INSTALL_WORK=$2;
63 export INSTALL_ROOT=$4;
64 export PRODUCT_SEQUENCE=$5;
65 if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="HelloSrc" ; fi
66 export PRODUCT="HELLO_SRC_3.0.0"
67 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
68 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}