RPM: update build scripts

pull/14/head
François Andriot 6 years ago
parent 94bd1ae2e5
commit e0e9cbe466

@ -1,8 +1,7 @@
#!/bin/bash #!/bin/bash -x
# Usage: build_rpm_package.sh <TDE_PACKAGE> [TDE_VERSION]
# Example: build_rpm_package.sh tdebase 14.0.0
# Usage: gather_rpm_sources.sh <TDE_PACKAGE> <TDE_VERSION> <DESTINATION>
# Example: gather_rpm_sources.sh tdebase 14.0.0 /tmp/tdebase
PKGNAME="${1%/}" PKGNAME="${1%/}"
PKGNAME="${PKGNAME##*/}" PKGNAME="${PKGNAME##*/}"
@ -31,7 +30,7 @@ cp -f ${SPECFILE} ${SOURCES} ${TARBALL} "${TARGETDIR}"
### Check for patches ### Check for patches
PATCHDIR="${SPECFILE%/*}/patches/${TDE_VERSION}" PATCHDIR="${HOME}/tde/tde-patches/${TDE_VERSION}/$1"
if [ -d "${PATCHDIR}" ]; then if [ -d "${PATCHDIR}" ]; then
cat "${PATCHDIR}/"*".patch" >>"${TARGETDIR}/one.patch" cat "${PATCHDIR}/"*".patch" >>"${TARGETDIR}/one.patch"
sed -i "${TARGETDIR}/"*".spec" \ sed -i "${TARGETDIR}/"*".spec" \

@ -4,11 +4,11 @@
TDE_BASEDIR=~/tde TDE_BASEDIR=~/tde
[ -z "${TDE_VERSION}" ] && TDE_VERSION="14.0.5" [ -z "${TDE_VERSION}" ] && TDE_VERSION="14.0.5"
TDE_GITBASESRC=${TDE_BASEDIR}/tde_master TDE_GITBASESRC=${TDE_BASEDIR}/tde.master
TDE_GITBASEPKG=${TDE_BASEDIR}/tde-packaging/redhat TDE_GITBASEPKG=${TDE_BASEDIR}/tde-packaging.master/redhat
TDE_TARBALLS=${TDE_BASEDIR}/tde-tarballs/${TDE_VERSION} TDE_TARBALLS=${TDE_BASEDIR}/tde-tarballs/${TDE_VERSION}
[ -d "${TDE_PACKAGING_DIR}" ] || export TDE_PACKAGING_DIR=~/tde/tde-packaging [ -d "${TDE_PACKAGING_DIR}" ] || export TDE_PACKAGING_DIR=~/tde/tde-packaging.master
export PATH="${PATH}:${TDE_GITBASEPKG}/build" export PATH="${PATH}:${TDE_GITBASEPKG}/build"

Loading…
Cancel
Save