summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2023-04-21 13:20:37 +0200
committerFrançois Andriot <albator78@libertysurf.fr>2023-04-21 13:20:37 +0200
commit78c25ac48eaff39d3822b2a4321b608ba44a6b7d (patch)
treedeb81acdbe503770970ecb526c2e0e248c9b7093
parent083646e079bddba0fbddf1b2c5e103c551d7e99c (diff)
downloadtde-packaging-78c25ac48eaff39d3822b2a4321b608ba44a6b7d.tar.gz
tde-packaging-78c25ac48eaff39d3822b2a4321b608ba44a6b7d.zip
RPM: update build script
Signed-off-by: François Andriot <albator78@libertysurf.fr>
-rwxr-xr-xredhat/build/get_latest_tarball_filename.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/redhat/build/get_latest_tarball_filename.sh b/redhat/build/get_latest_tarball_filename.sh
index c3f35cf43..e2558d585 100755
--- a/redhat/build/get_latest_tarball_filename.sh
+++ b/redhat/build/get_latest_tarball_filename.sh
@@ -12,7 +12,13 @@ EXTRA_DIR="$(cd ${TARBALLS_DIR}/../extras/; pwd)"
RET=""
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)
[ -r "${RET}" ] && break
done