RPM: update build script

Signed-off-by: François Andriot <albator78@libertysurf.fr>
pull/214/head
François Andriot 2 years ago
parent 083646e079
commit 78c25ac48e

@ -12,7 +12,13 @@ EXTRA_DIR="$(cd ${TARBALLS_DIR}/../extras/; pwd)"
RET="" RET=""
for dir in "${TARBALLS_DIR}" "${EXTRA_DIR}" "${DIST_PACKAGING_DIR}"; do for dir in "${TARBALLS_DIR}" "${EXTRA_DIR}" "${DIST_PACKAGING_DIR}"; do
for v in "${PKGNAME}-${TDE_VERSION}*.tar.*" "trinity-${PKGNAME}-${TDE_VERSION}*.tar.*" "${PKGNAME}[-_][0-9]*.tar.*"; do for v in \
"${PKGNAME}-${TDE_VERSION}.tar.*" \
"${PKGNAME}-${TDE_VERSION}*.tar.*" \
"trinity-${PKGNAME}-${TDE_VERSION}.tar.*" \
"trinity-${PKGNAME}-${TDE_VERSION}*.tar.*" \
"${PKGNAME}[-_][0-9]*.tar.*" \
; do
RET=$(find "${dir}" -follow -type f -name ${v} | sort | tail -n 1) RET=$(find "${dir}" -follow -type f -name ${v} | sort | tail -n 1)
[ -r "${RET}" ] && break [ -r "${RET}" ] && break
done done

Loading…
Cancel
Save