|
|
|
@ -10,32 +10,32 @@ TDE_VERSION="${2:-14.0.0}"
|
|
|
|
|
|
|
|
|
|
EXTRA_DIR="$(cd ${TARBALLS_DIR}/../extras/; pwd)"
|
|
|
|
|
|
|
|
|
|
RET=$(find "${TARBALLS_DIR}" -name "trinity-${PKGNAME}-${TDE_VERSION}*.tar.gz" | sort -n | tail -n 1)
|
|
|
|
|
RET=$(find "${TARBALLS_DIR}" -name "trinity-${PKGNAME}-${TDE_VERSION}*.tar.gz" | sort -V | tail -n 1)
|
|
|
|
|
[ -r "${RET}" ] && echo "${RET}" && exit 0
|
|
|
|
|
|
|
|
|
|
RET=$(find "${TARBALLS_DIR}" "${EXTRA_DIR}" -follow -name "${PKGNAME}-${TDE_VERSION}*.tar.gz" | sort -n | tail -n 1)
|
|
|
|
|
RET=$(find "${TARBALLS_DIR}" "${EXTRA_DIR}" -follow -name "${PKGNAME}-${TDE_VERSION}*.tar.gz" | sort -V | tail -n 1)
|
|
|
|
|
[ -r "${RET}" ] && echo "${RET}" && exit 0
|
|
|
|
|
|
|
|
|
|
RET=$(find "${TARBALLS_DIR}" -name "trinity-${PKGNAME}-[0-9]*.tar.gz" | sort -n | tail -n 1)
|
|
|
|
|
RET=$(find "${TARBALLS_DIR}" -name "trinity-${PKGNAME}-[0-9]*.tar.gz" | sort -V | tail -n 1)
|
|
|
|
|
[ -r "${RET}" ] && echo "${RET}" && exit 0
|
|
|
|
|
|
|
|
|
|
RET=$(find "${EXTRA_DIR}" -follow -name "${PKGNAME}[-_][0-9]*.tar.*" | sort -n | tail -n 1)
|
|
|
|
|
RET=$(find "${EXTRA_DIR}" -follow -name "${PKGNAME}[-_][0-9]*.tar.*" | sort -V | tail -n 1)
|
|
|
|
|
[ -r "${RET}" ] && echo "${RET}" && exit 0
|
|
|
|
|
|
|
|
|
|
# Now look in the 'tde-packaging' directory
|
|
|
|
|
RET=$(find "${DIST_PACKAGING_DIR}" -name "${PKGNAME}-[0-9]*.tar*" | sort -n | tail -n 1)
|
|
|
|
|
RET=$(find "${DIST_PACKAGING_DIR}" -name "${PKGNAME}-[0-9]*.tar*" | sort -V | tail -n 1)
|
|
|
|
|
[ -r "${RET}" ] && echo "${RET}" && exit 0
|
|
|
|
|
|
|
|
|
|
# Retry without 'trinity-*', and allow any TAR extension.
|
|
|
|
|
RET=$(find "${DIST_PACKAGING_DIR}" -name "${PKGNAME}-[0-9]*.tar*" | sort -n | tail -n 1)
|
|
|
|
|
RET=$(find "${DIST_PACKAGING_DIR}" -name "${PKGNAME}-[0-9]*.tar*" | sort -V | tail -n 1)
|
|
|
|
|
[ -r "${RET}" ] && echo "${RET}" && exit 0
|
|
|
|
|
|
|
|
|
|
# Retry without 'trinity-*', and allow any TAR extension.
|
|
|
|
|
RET=$(find "${DIST_PACKAGING_DIR}" -name "${PKGNAME}-[0-9]*.tar*" | sort -n | tail -n 1)
|
|
|
|
|
RET=$(find "${DIST_PACKAGING_DIR}" -name "${PKGNAME}-[0-9]*.tar*" | sort -V | tail -n 1)
|
|
|
|
|
[ -r "${RET}" ] && echo "${RET}" && exit 0
|
|
|
|
|
|
|
|
|
|
# Retry by removing numbers in package name, e.g "imlib1" => "imlib"
|
|
|
|
|
RET=$(find "${DIST_PACKAGING_DIR}" -name "$(tr -d "[0-9]" <<< ${PKGNAME})-[0-9]*.tar*" | sort -n | tail -n 1)
|
|
|
|
|
RET=$(find "${DIST_PACKAGING_DIR}" -name "$(tr -d "[0-9]" <<< ${PKGNAME})-[0-9]*.tar*" | sort -V | tail -n 1)
|
|
|
|
|
[ -r "${RET}" ] && echo "${RET}" && exit 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|