diff options
author | François Andriot <albator78@libertysurf.fr> | 2014-11-09 12:54:35 +0100 |
---|---|---|
committer | François Andriot <albator78@libertysurf.fr> | 2014-11-09 12:54:35 +0100 |
commit | a3bdc3b32bcb585ff9786e727bd8d47917ba3c10 (patch) | |
tree | 5da21e4e0bdcc029a5b4a0cf4ae26ff4d300f5e1 /redhat/build/get_latest_tarball_filename.sh | |
parent | e25e5dfb46bcbb9327349620eca4da0a9538bf0d (diff) | |
download | tde-packaging-a3bdc3b32bcb585ff9786e727bd8d47917ba3c10.tar.gz tde-packaging-a3bdc3b32bcb585ff9786e727bd8d47917ba3c10.zip |
RPM packaging: update build scripts
Diffstat (limited to 'redhat/build/get_latest_tarball_filename.sh')
-rwxr-xr-x | redhat/build/get_latest_tarball_filename.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/redhat/build/get_latest_tarball_filename.sh b/redhat/build/get_latest_tarball_filename.sh index e4c58d2b6..3cdeb904d 100755 --- a/redhat/build/get_latest_tarball_filename.sh +++ b/redhat/build/get_latest_tarball_filename.sh @@ -5,12 +5,12 @@ TDE_VERSION="${2:-14.0.0}" [ -z "${PKGNAME}" ] && echo "You must specify a package name !" && exit 1 [ -d "${TARBALLS_DIR}" ] || TARBALLS_DIR=~/tde/tde-tarballs/${TDE_VERSION}/ -[ -d "${PACKAGING_DIR}" ] || PACKAGING_DIR=~/tde/tde-packaging +[ -d "${TDE_PACKAGING_DIR}" ] || TDE_PACKAGING_DIR=~/tde/tde-packaging [ -d "${DIST_PACKAGING_DIR}" ] || DIST_PACKAGING_DIR=${PACKAGING_DIR}/redhat/ RET=$(find "${TARBALLS_DIR}" -name "trinity-${PKGNAME}-[0-9]*.tar.gz" | sort -n | tail -n 1) if [ -z "${RET}" ]; then - RET=$(find "${TARBALLS_DIR}/../extras/" -name "${PKGNAME}-[0-9]*.tar.*" | sort -n | tail -n 1) + RET=$(find "${TARBALLS_DIR}/../extras/" -name "${PKGNAME}[-_][0-9]*.tar.*" | sort -n | tail -n 1) fi if [ ! -r "${RET}" ]; then # Retry without 'trinity-*', and allow any TAR extension. |