#
#   makeTarPackage - Create tar package
#
#   Included by makePackage to create RPM packages.
#
#   Copyright (c) Embedthis Software LLC, 2003-2009. All Rights Reserved.
#
################################################################################

makeTarPackage() {
    local file

    echo -ne "\n  #\n  # "
    echo -e "Create Tar package ...\n  # "

    #
    #   Tar of tar archives
    #
    cd ${ROOT_DIR}

    file=`echo ${BLD_PRODUCT}-${BLD_VERSION}-${BLD_NUMBER}-${BLD_HOST_DIST}-${BLD_HOST_OS}-${BLD_HOST_CPU}.tar.tar`
    rm -f ${file}*
    srcPkg=`createPackageName ${BLD_PRODUCT}-src`.tar.gz
    # files=`echo *.gz | sed "s^$srcPkg^^"`
    files=`echo *.gz`

    echo "  tar -cf ${file} install uninstall README.TXT ..."
    tar -cf ${file} install uninstall README.TXT ${files}
    echo "  gzip ${file}"
    gzip ${file}
    cd ${HOME}
}

makeTarPackage

