#!/bin/sh
check_version(){
-#we don't know anything about version
-return 0
+if [ -n "${HELLO_SRC_DIR}" ]; then
+ if [ -f ${HELLO_SRC_DIR}/bin/VERSION ]; then
+ ver=`cat ${HELLO_SRC_DIR}/bin/VERSION | awk -F: '{print $NF}' | tr -d '[:space:]' `
+ if [ "$ver" = "2.2.6" ]; then
+ return 0
+ fi
+ fi
+fi
+return 1
}
print_env(){
make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
source ${INSTALL_WORK}/$SHRC
-check_jb tar xfz ${SOURCE_DIR}/HELLOsourcesV2.2.5.tar.gz -C ${INSTALL_ROOT}
+check_jb tar xfz ${SOURCE_DIR}/HELLOsourcesV2.2.6.tar.gz -C ${INSTALL_ROOT}
print_env
}
export INSTALL_ROOT=$4;
export PRODUCT_SEQUENCE=$5;
if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="HelloSrc" ; fi
-export PRODUCT="HELLO_SRC_2.2.5"
+export PRODUCT="HELLO_SRC_2.2.6"
export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
source ./common.sh