diff options
author | François Andriot <albator78@libertysurf.fr> | 2018-06-18 22:06:01 +0200 |
---|---|---|
committer | François Andriot <albator78@libertysurf.fr> | 2018-06-19 20:11:02 +0200 |
commit | 3f0ae4ce7e948c666db00647454b4ec32d796768 (patch) | |
tree | bc7fb93a7c0986c8b749cfb9b50837aa189535e7 /redhat/build/gather_rpm_sources.sh | |
parent | a5fdb0ea69d56f6d5a68e8a38fc72e367b797464 (diff) | |
download | tde-packaging-3f0ae4ce7e948c666db00647454b4ec32d796768.tar.gz tde-packaging-3f0ae4ce7e948c666db00647454b4ec32d796768.zip |
RPM: update build scripts
Diffstat (limited to 'redhat/build/gather_rpm_sources.sh')
-rwxr-xr-x | redhat/build/gather_rpm_sources.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/redhat/build/gather_rpm_sources.sh b/redhat/build/gather_rpm_sources.sh index fb9499e4f..decabea84 100755 --- a/redhat/build/gather_rpm_sources.sh +++ b/redhat/build/gather_rpm_sources.sh @@ -11,6 +11,8 @@ TARGETDIR="${3:-/tmp/${PKGNAME}-${TDE_VERSION}}" DIST="$4" SPECFILE=$(get_specfile.sh ${PKGNAME} ${TDE_VERSION}) +[ -z "${SPECFILE}" ] && exit 1 + SOURCES=$(get_source_files.sh ${PKGNAME} ${TDE_VERSION} ${DIST}) TARBALL=$(get_latest_tarball_filename.sh ${PKGNAME} ${TDE_VERSION} || :) VERSION=$(get_latest_tarball_version.sh ${PKGNAME} ${TDE_VERSION} || :) @@ -23,6 +25,7 @@ BUILDROOTDIR="${TMPPATH}/BUILDROOT${DIST}.$(uname -i)" LOGFILE="${TMPPATH}/log.${COMP##*/}" mkdir -p "${TARGETDIR}" +rm -f "${TARGETDIR}/"* cp -f ${SPECFILE} ${SOURCES} ${TARBALL} "${TARGETDIR}" |