RPM packaging: update build script

pull/3/head
François Andriot 8 years ago
parent aeb5bcbd06
commit 6ddde32ec4

@ -747,7 +747,9 @@ celestia:
$(call buildpkg,extras/celestia)
fileshareset:
ifeq ($(wildcard /boot/vmlinuz*.mga6*),)
$(call buildpkg,extras/fileshareset)
endif
hk_classes:
$(call buildpkg,extras/hk_classes)

@ -13,13 +13,13 @@ EXTRA_DIR="$(cd ${TARBALLS_DIR}/../extras/; pwd)"
RET=$(find "${TARBALLS_DIR}" -name "trinity-${PKGNAME}-${TDE_VERSION}*.tar.gz" | sort -n | tail -n 1)
[ -r "${RET}" ] && echo "${RET}" && exit 0
RET=$(find "${TARBALLS_DIR}" "${EXTRA_DIR}" -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 -n | 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)
[ -r "${RET}" ] && echo "${RET}" && exit 0
RET=$(find "${EXTRA_DIR}" -name "${PKGNAME}[-_][0-9]*.tar.*" | sort -n | tail -n 1)
RET=$(find "${EXTRA_DIR}" -follow -name "${PKGNAME}[-_][0-9]*.tar.*" | sort -n | tail -n 1)
[ -r "${RET}" ] && echo "${RET}" && exit 0
# Now look in the 'tde-packaging' directory

@ -24,7 +24,7 @@ for filename in \
"trinity-${PKGNAME}-14.0.0.spec" \
"trinity-${PKGNAME}.spec" \
; do
SPECFILE="$(find "${DIST_PACKAGING_DIR}" -name "${filename}")"
SPECFILE="$(find "${DIST_PACKAGING_DIR}" -follow -name "${filename}")"
if [ -r "${SPECFILE}" ]; then
echo "${SPECFILE}"
exit 0

Loading…
Cancel
Save